[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.


https://reviews.llvm.org/D25825

Files:
  ELF/OutputSections.cpp
  test/ELF/arm-exidx-relocatable.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25825.75293.patch
Type: text/x-patch
Size: 4478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161020/29bd0b81/attachment.bin>


More information about the llvm-commits mailing list