[PATCH] D41592: [ELF] - Add missing dynamic tags when producing output with IRelative relocations only.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 27 02:52:46 PST 2017
grimar created this revision.
grimar added reviewers: ruiu, rafael.
Herald added a subscriber: fedor.sergeev.
This is "Bug 35751 - .dynamic relocation entries omitted if output
contains only IFUNC relocations"
We have `InX::RelaPlt` and `InX::RelaIPlt` synthetic sections for PLT relocations.
They are usually live in `rela.plt` section. Problem appears when `InX::RelaPlt`
section is empty. In that case we did not produce normal set of dynamic tags
required, because logic was written in the way assuming we always have
non-IRelative relocations in `rela.plt`.
Patch fixes the issue.
https://reviews.llvm.org/D41592
Files:
ELF/SyntheticSections.cpp
test/ELF/gnu-ifunc-dyntags.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41592.128214.patch
Type: text/x-patch
Size: 3663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171227/76715637/attachment.bin>
More information about the llvm-commits
mailing list