[PATCH] D39959: [ELF] - Allow merging of strings sections for -relocatable output.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 00:47:21 PST 2017
>What is it that prevent us from just using elf::mergeSections for -r?
>
>If I remember correctly, we don't want to merge input strings when that
>would reduce what the final link can do (--gc-sections for example). But
>with SHF_MERGE, they should always be fine to merge.
>
>Cheers,
>Rafael
I guess nothing stops us from doing that, that was what I initially meant in
comment for PR35223. Just was not sure what path is better for -r.
I'll try to enable string merging for -r then.
George.
More information about the llvm-commits
mailing list