Skip to content
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

FIH_LABEL fails with lld #1981

Open
d3zd3z opened this issue Jun 12, 2024 · 0 comments
Open

FIH_LABEL fails with lld #1981

d3zd3z opened this issue Jun 12, 2024 · 0 comments

Comments

@d3zd3z
Copy link
Member

d3zd3z commented Jun 12, 2024

The LLVM linker supports fairly aggressive dead code elimination. The way we are inserting labels for the FIH tools, causes the LLVM linker to consider various blocks of following code to be dead and eliminates them. The result is code that executes somewhat nonsensically, and in a way that is difficult to debug.

#1980 adds a workaround for Apple targets by just not inserting the labels, but it would be nice to figure out a way to add these that the LLVM linker doesn't eliminate.

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

No branches or pull requests

1 participant