HomePhabricator

[ELF] Add sh_link field to .ARM.exidx sections for relocatable links

Description

[ELF] Add sh_link field to .ARM.exidx sections for relocatable links

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.

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.

Differential revision: https://reviews.llvm.org/D25825

Details

Committed
psmithOct 21 2016, 4:25 AM
Differential Revision
D25825: [LLD][ARM] Add sh_link field to .ARM.exidx sections for relocatable links
Parents
rL284819: Add TestMultipleHits.py
Branches
Unknown
Tags
Unknown