Angepasste config
Some checks failed
Hello World (Multiplatform) / build (macos-12) (push) Has been cancelled
Hello World (Multiplatform) / build (macos-14) (push) Has been cancelled
Hello World (Multiplatform) / build (ubuntu-22.04) (push) Has been cancelled
Hello World (Multiplatform) / build (windows-2022) (push) Has been cancelled
Run tests with twister / twister-build-prep (push) Has been cancelled
Run tests with twister / twister-build (push) Has been cancelled
Run tests with twister / Publish Unit Tests Results (push) Has been cancelled
Run tests with twister / Check Twister Status (push) Has been cancelled
Some checks failed
Hello World (Multiplatform) / build (macos-12) (push) Has been cancelled
Hello World (Multiplatform) / build (macos-14) (push) Has been cancelled
Hello World (Multiplatform) / build (ubuntu-22.04) (push) Has been cancelled
Hello World (Multiplatform) / build (windows-2022) (push) Has been cancelled
Run tests with twister / twister-build-prep (push) Has been cancelled
Run tests with twister / twister-build (push) Has been cancelled
Run tests with twister / Publish Unit Tests Results (push) Has been cancelled
Run tests with twister / Check Twister Status (push) Has been cancelled
This commit is contained in:
parent
58542a693b
commit
a35cfeeadb
|
@ -159,8 +159,8 @@ endif()
|
||||||
# (supported by current gcc's as well)
|
# (supported by current gcc's as well)
|
||||||
#
|
#
|
||||||
if(CONFIG_CFI)
|
if(CONFIG_CFI)
|
||||||
zephyr_compile_options(-flto)
|
zephyr_compile_options(-flto -fvisibility=hidden)
|
||||||
target_compile_options(native_simulator INTERFACE "-flto")
|
target_compile_options(native_simulator INTERFACE "-flto -fvisibility=hidden")
|
||||||
target_link_options(native_simulator INTERFACE "-flto")
|
target_link_options(native_simulator INTERFACE "-flto")
|
||||||
list(APPEND LLVM_SANITIZERS "cfi")
|
list(APPEND LLVM_SANITIZERS "cfi")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
CONFIG_ASAN=y
|
#CONFIG_ASAN=y
|
||||||
CONFIG_CFI=y
|
CONFIG_CFI=y
|
||||||
#CONFIG_LLVM_USE_LLD=y
|
#CONFIG_LLVM_USE_LLD=y
|
||||||
|
|
||||||
|
CONFIG_DEBUG=y
|
||||||
|
CONFIG_DEBUG_INFO=y
|
||||||
|
CONFIG_DEBUG_OPTIMIZATIONS=y
|
||||||
|
|
|
@ -110,7 +110,7 @@ config GPROF
|
||||||
|
|
||||||
config CFI
|
config CFI
|
||||||
bool "Build with control flow integrity sanitizer"
|
bool "Build with control flow integrity sanitizer"
|
||||||
depends on ARCH_POSIX
|
depends on
|
||||||
help
|
help
|
||||||
Builds Zephyr with Address Sanitizer enabled. This is currently
|
Builds Zephyr with Address Sanitizer enabled. This is currently
|
||||||
only supported by boards based on the posix architecture, and requires a
|
only supported by boards based on the posix architecture, and requires a
|
||||||
|
|
Loading…
Reference in a new issue