Skip to content

Commit 0009b70

Browse files
authored
Add CFI ignore file for ATfE. (#266)
Add CFI ignore file for ATfE. This fixes an issue observed with 1ce2517 There are at least 3 ways by which cfi-ignore file can be invoked: 1. With the binary installer, by executing the program. For example: `clang --target=aarch64-none-elf -march=armv8-a -c test.c -flto -fsanitize=cfi -fvisibility=hidden` 2. With the binary installer, by executing the "cpp-baremetal-semihosting-cfi" example code in "samples" directory, without "-fno-sanitize-ignorelist" in MakeFile 3. By compiling the source code and using the compiled binary to execute the program. For example: `./build/llvm/bin/clang --target=aarch64-none-elf -march=armv8-a -c test.c -flto -fsanitize=cfi -fvisibility=hidden` Previous patch version did not work for scenario 3, and this patch version fixes it.
1 parent cd19fd4 commit 0009b70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arm-software/embedded/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,10 +703,10 @@ if(NOT PREBUILT_TARGET_LIBRARIES)
703703
endforeach()
704704
endif()
705705

706-
FILE(WRITE "${CMAKE_BINARY_DIR}/${TARGET_CFI_DIR}/cfi_ignorelist.txt" "")
706+
FILE(WRITE "${CMAKE_BINARY_DIR}/llvm/${TARGET_CFI_DIR}/cfi_ignorelist.txt" "")
707707
install(
708708
FILES
709-
${CMAKE_BINARY_DIR}/${TARGET_CFI_DIR}/cfi_ignorelist.txt
709+
${CMAKE_BINARY_DIR}/llvm/${TARGET_CFI_DIR}/cfi_ignorelist.txt
710710
DESTINATION ${TARGET_CFI_DIR}
711711
COMPONENT llvm-toolchain-libs
712712
)

0 commit comments

Comments
 (0)