Skip to content

Add CFI ignore file for ATfE. #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

vrukesh
Copy link
Contributor

@vrukesh vrukesh commented Apr 9, 2025

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.

Copy link
Contributor

@pratlucas pratlucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the PR description to cover what was the issue observed with the previous commit, so it's clear for future readers.

@vrukesh vrukesh merged commit 0009b70 into arm:arm-software Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants