u-boot/arch
Andrew Scull 1e578ed20c sandbox: Add support for Address Sanitizer
Add CONFIG_ASAN to build with the Address Sanitizer. This only works
with the sandbox so the config is likewise dependent. The resulting
executable will have ASAN instrumentation, including the leak detector
that can be disabled with the ASAN_OPTIONS environment variable:

   ASAN_OPTIONS=detect_leaks=0 ./u-boot

Since u-boot uses its own dlmalloc, dynamic allocations aren't
automatically instrumented, but stack variables and globals are.

Instrumentation could be added to dlmalloc to poison and unpoison memory
as it is allocated and deallocated, and to introduce redzones between
allocations. Alternatively, the sandbox may be able to play games with
the system allocator and somehow still keep the required memory
abstraction. No effort to address dynamic allocation is made by this
patch.

The config is not yet enabled for any targets by default.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-06-23 12:58:18 -04:00
..
arc linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
arm linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
m68k linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
microblaze linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
mips linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
nios2 linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
powerpc linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
riscv linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
sandbox sandbox: Add support for Address Sanitizer 2022-06-23 12:58:18 -04:00
sh linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
x86 linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
xtensa linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
.gitignore
Kconfig powerpc: mpc85xx: Set default SYS_IMMR value for P1/P2 CPUs 2022-06-20 09:18:26 +08:00
u-boot-elf.lds arch: Add explicit linker script for u-boot-elf 2020-04-03 11:52:55 -04:00