freebsd-dev/tools/build
Brooks Davis e268fd0a02 Support initializing stack variables on function entry
There are two options:
 - WITH_INIT_ALL_ZERO: Zero all variables on the stack.
 - WITH_INIT_ALL_PATTERN: Initialize variables with well-defined patterns.

The exact pattern are a compiler implementation detail and vary by type.
They are somewhat documented in the LLVM commit message:
https://reviews.llvm.org/rL349442
I've used WITH_INIT_ALL_* to match Microsoft's InitAll feature rather
than naming them after the LLVM specific compiler flags.

In a range of consumer products, options like these are used in
both debug and production builds with debugs builds using patterns
(intended to provoke crashes on use of uninitialized values) and
production using zeros (deemed more likely to lead to harmless
misbehavior or NULL-pointer dereferences).

Reviewed by:	emaste
Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D27131
2020-11-10 19:15:13 +00:00
..
bootstrap-m4 Add necessary Makefile.inc1 infrastructure for building on non-FreeBSD 2020-08-25 13:29:57 +00:00
cross-build Fix more -Wundef warnings during bootstrap 2020-10-14 12:28:54 +00:00
libc-bootstrap Add missing FreeBSD functions to -legacy when building on macOS/Linux 2020-08-25 13:23:31 +00:00
make_check
mk libbe(3): install MLINKS for all of the functions provided 2020-10-18 23:58:40 +00:00
options Support initializing stack variables on function entry 2020-11-10 19:15:13 +00:00
beinstall.sh beinstall.sh: Use bectl instead of beadm by default 2020-10-30 09:40:55 +00:00
check-links.sh Allow specifying an alternative LD_LIBRARY_PATH for the ldd(1) lookup. 2016-01-19 22:42:16 +00:00
depend-cleanup.sh build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
dummy.c
futimens.c build: Add legacy support for futimens() and utimensat(). 2016-06-09 21:57:34 +00:00
make.py When building on Ubuntu bootstrap bmake with bash as the default shell 2020-09-21 15:49:02 +00:00
Makefile Fix more -Wundef warnings during bootstrap 2020-10-14 12:28:54 +00:00
Makefile.depend META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
stat.h build: Add legacy support for futimens() and utimensat(). 2016-06-09 21:57:34 +00:00
stdlib.h
strings.h Fix buildworld on FreeBSD 10 2018-07-16 11:03:05 +00:00
utimensat.c build: Add legacy support for futimens() and utimensat(). 2016-06-09 21:57:34 +00:00