[PATCH] D68094: ELF: Don't merge SHF_LINK_ORDER sections for different output sections in relocatable links.
Peter Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 27 13:52:11 PDT 2019
peter.smith added a comment.
Apologies, not going to get a chance to look in detail today, will get back to the office on Monday. For an OutputSection containing InputSections with a SHF_LINK_ORDER dependency it should be possible to sort these sections based on the outSecOff of the InputSections within the OutputSection that there is a link order dependency on. This relative order would be stable under the final SHF_LINK_ORDER search in the final link. I agree that this is most likely only needed when a linker script is used as the default layout from the compiler will usually produce the right order.
For Arm, I think that ld -r with a linker script is usually used in the context of a linux kernel module which would discard exception tables.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68094/new/
https://reviews.llvm.org/D68094
More information about the llvm-commits
mailing list