toolchain: Allow building with ASAN and UBSAN sanitizer
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 12 Mar 2020 22:46:11 +0000 (23:46 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 17 Jan 2021 14:41:13 +0000 (15:41 +0100)
commite0d3ee2ba062a2139f43838aa660b0a4c6af1178
treec21b67e7c444a1a5f0cafefde3638d048c1cfa72
parent498f032d4558e103c2801bfc5ddef9e9cf89b26b
toolchain: Allow building with ASAN and UBSAN

This allows to build all user space with Address sanitizer and undefined
behavior sanitizer. It will automatically add this to the TRAGET_CFLAGS
and TARGET_LDFLAGS of every user space component.

This is only working with gcc 10.X, because the system init process will
mount /proc after it was started and ASAN needs it already earlier and
fails in the versions provided by older compilers.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
config/Config-build.in
include/hardening.mk
include/package-defaults.mk
include/toolchain-build.mk
package/boot/grub2/Makefile
package/libs/toolchain/Makefile
package/network/services/dropbear/Makefile
package/utils/busybox/Makefile