[PATCH] D25825: [LLD][ARM] Add sh_link field to .ARM.exidx sections for relocatable links
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 20 06:51:19 PDT 2016
peter.smith created this revision.
peter.smith added reviewers: ruiu, rafael.
peter.smith added a subscriber: llvm-commits.
Herald added subscribers: rengolin, aemerson.
When doing a relocatable link the .ARM.exidx sections with the SHF_LINK_ORDER flag set need to set the sh_link field to the executable section they describe. We find the appropriate OutputSection by following the sh_link field of the .ARM.exidx InputSections.
Since the changes in https://reviews.llvm.org/D25232 , the getOutputSectionName() function rules make sure that when there are multiple .ARM.exidx InputSections in an OutputSection they all have the same sh_link field.
This change should be sufficient to support ARM exceptions sections in relocatable objects.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4478 bytes
Desc: not available
More information about the llvm-commits