[PATCH] D33824: [ELF] - Do not merge relocation sections by name when using --emit-relocs.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 2 04:01:55 PDT 2017
grimar created this revision.
Herald added a subscriber: emaste.
Previously we would merge relocation sections by name.
That did not work in some cases, like testcase shows.
Patch implements logic to merge relocation sections if their target
sections were merged into the same output section.
Such approach should allow to implement linker script case (https://reviews.llvm.org/D33780) in a
simple way.
Testcase and idea to change how we handle this belongs to Rafael EspĂndola.
https://reviews.llvm.org/D33824
Files:
ELF/OutputSections.cpp
ELF/OutputSections.h
ELF/Writer.cpp
test/ELF/emit-relocs-merge.s
test/ELF/emit-relocs-merge.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33824.101185.patch
Type: text/x-patch
Size: 4636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170602/0d9ddb15/attachment.bin>
More information about the llvm-commits
mailing list