[PATCH] D40026: [ELF] - Allow applying SHF_MERGE optimization for relocatable output.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 06:29:44 PST 2017
grimar created this revision.
Herald added subscribers: arichardson, emaste.
This is alternative (to https://reviews.llvm.org/D39959) version of fix for PR35223.
Here I enabled SHF_MERGE section content merging for -r like
we do for regular linking.
Besides expected changes that also required fixing of incorrect addends
produced for relocations and producing STT_SECTION symbol for
synthetic SHF_MERGE sections (we did not need that earlier because did
not use synthetic input section for -r before this patch).
https://reviews.llvm.org/D40026
Files:
ELF/InputFiles.cpp
ELF/InputSection.cpp
ELF/LinkerScript.cpp
ELF/SyntheticSections.cpp
ELF/Writer.cpp
test/ELF/emit-relocs.s
test/ELF/merge-reloc.s
test/ELF/relocatable-mergeable-relocs.s
test/ELF/relocatable-mergeable.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40026.122834.patch
Type: text/x-patch
Size: 10229 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171114/ab1283c5/attachment.bin>
More information about the llvm-commits
mailing list