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
lld: Set OS/ABI version to ELFOSABI_GNU if object contains GNU symbols #59199
Comments
@llvm/issue-subscribers-lld-elf |
I mentioned this on https://maskray.me/blog/2021-01-18-gnu-indirect-function Changing I don't think changing |
Using U++, msys2(clang64), the options are: the result is: The question is: how to tell it to work with elf64?! |
I agree it doesn't really matter de facto today - it's still a bit odd to have different linkers behave differently here. As to whether the linker should check the features directly or rely on input objects, I think the idea was that it is possible for the final executable to no longer require a GNU feature even though an input object did use it. (E.g. only reference to an ifunc symbol was from a section that got discarded; or maybe the symbol was resolved locally.) |
This is a spin of #40541, this time for LLVM linker:
ifunc.c
:While
bfd
andgold
does:@MaskRay
The text was updated successfully, but these errors were encountered: