This fixes PR35223.
Here I enabled SHF_MERGE section content merging for -r like
we do for regular linking.
Paths
| Differential D40026
[ELF] - Allow applying SHF_MERGE optimization for relocatable output. ClosedPublic Authored by grimar on Nov 14 2017, 6:28 AM.
Details Summary This fixes PR35223. Here I enabled SHF_MERGE section content merging for -r like
Diff Detail Event Timeline
This revision is now accepted and ready to land.Nov 17 2017, 12:56 AM Closed by commit rL318516: [ELF] - Allow applying SHF_MERGE optimization for relocatable output. (authored by grimar). · Explain WhyNov 17 2017, 3:28 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 122834 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
|
Do you need this temporary variable?