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
llvm-strip on mips fails with error: symbol 'stdout' has unsupported value greater than or equal to SHN_LORESERVE: 65283 #53998
Comments
@llvm/issue-subscribers-backend-mips |
@llvm/issue-subscribers-tools-llvm-objcopy-strip |
SHN_MIPS_SCOMMON is 0xff03. https://refspecs.linuxfoundation.org/elf/mipsabi.pdf (I do not know which ABI is more appropriate) says:
Clang never emits |
its using clang with -fcommon to generate this binary. |
I imagine this is simply a case of handling the specual value like SHN_COMMON and SHN_ABS symbols, if the machine type is MIPS. Is that the case? If so, someone could add the good-first-bug tag as I think it'll be easy enough for a new developer to pick this one up, based on this. |
@llvm/issue-subscribers-good-first-issue |
I submitted a patch here: https://reviews.llvm.org/D123902 |
This fixes llvm/llvm-project#53998 and displays correct information in obj2yaml for SHN_MIPS_* sections according to https://refspecs.linuxfoundation.org/elf/mipsabi.pdf Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D123902
Attached testcase fails llvm-strip where as GNU strip works ok.
purgatory.ro.sym.tar.gz
The text was updated successfully, but these errors were encountered: