On PowerPC64, it is necessary to keep the LocalEntry bits in st_other,
especially when -r is used. Otherwise, when the resulting object is used
in a posterior linking, LocalEntry info will be unavailable and functions may
be called through the wrong entrypoint.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Sorry for the belated response. I missed this one for some reason.
Can you add a test?
ELF/SyntheticSections.cpp | ||
---|---|---|
2003 ↗ | (On Diff #182027) | I think you need to define a new function that is so trivial. I'd hardcode & 0xe0 with an explanation what that is. |
ELF/Target.h | ||
---|---|---|
182 ↗ | (On Diff #182027) | Perhaps add a comment referencing Arch/PPC64.cpp getPPC64GlobalEntryToLocalEntryOffset The 3 most significant bits of st_other are used by OpenPOWER ABI. |
ELF/Target.h | ||
---|---|---|
182 ↗ | (On Diff #182027) | Sorry, the comment should be near line 2003 :) |