zephyr/soc
Andy Ross 74cc534758 cmake: Update CONFIG_ASAN support
This had bitrotten a bit, and didn't build as shipped.  Current
libasan implementations want -fsanitize=address passed as a linker
argument too.  We have grown a "lld" linker variant that needs the
same cmake treatment as the "ld" binutils one, but never got it.  But
the various flags had been cut/pasted around to different places, with
slightly different forms.  That's really sort of a mess, as sanitizer
support was only ever support with host toolchains for native_posix
(and AFAICT no one anywhere has made this work on cross compilers in
an embedded environment).  And the separate "gcc" vs. "llvm" layers
were silly, as there has only ever been one API for this feature (from
LLVM, then picked up compatibly by gcc).

Pull this stuff out and just do it in one place in the posix arch for
simplicity.

Also recent sanitizers are trying to add instrumentation padding
around data that we use linker trickery to pack tightly
(c.f. SYS_INIT, STRUCT_SECTION_ITERABLE) and we need a way
("__noasan") to turn that off.  Actually for gcc, it was enough to
just make the records const (already true for most of them, except a
native_posix init struct), but clang apparently isn't smart enough.

Finally, add an ASAN_RECOVER kconfig that enables the use of
"halt_on_error=0" in $ASAN_OPTIONS, which continues execution past the
first error.

Signed-off-by: Andy Ross <andyross@google.com>
2022-08-19 08:30:01 +02:00
..
arc soc: arc: remove unused <soc.h> files 2022-08-03 07:46:14 -04:00
arm arch: arm: Fix cache-related Kconfig symbols 2022-08-18 11:30:49 +00:00
arm64 soc/arm64: Do not allow userspace to directly access peripherals 2022-08-05 06:28:57 +01:00
mips
nios2
posix cmake: Update CONFIG_ASAN support 2022-08-19 08:30:01 +02:00
riscv peci: remove Kconfig.defconfig* setting of peci drivers 2022-08-16 08:26:11 +00:00
sparc
x86
xtensa dma/hda: Use the correct register block size for each IP block 2022-08-18 14:54:57 -05:00
Kconfig