[PATCH] D27041: [ELF] - Disable emiting multiple output sections when merging is disabled.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 29 05:07:07 PST 2016
grimar added inline comments.
================
Comment at: ELF/InputSection.cpp:91
Alignment = V;
}
----------------
ruiu wrote:
> How about this. You could add code here to drop the flag.
>
> // If it is not a mergeable section, overwrite the flag so that the flag
> // is consistent with the class. This inconsistency could occur when
> // string merging is disabled using -O0 flag.
> if (!isa<MergeInputSection<ELFT>>(this))
> Flags &= ~(SHF_MERGE | SHF_STRINGS);
>
This works for me with minor modification, thanks.
https://reviews.llvm.org/D27041
More information about the llvm-commits
mailing list