[PATCH] D26130: [ELF] - Implemented --symbol-ordering-file option.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 10 07:13:39 PST 2016
>On 10 November 2016 at 07:49, George Rimar <grimar at accesssoftek.com> wrote:
>> BTW, do we need patch to handle --symbol-ordering-file for linkerscript case ?
>
>Not sure there is a clean way to make that work. What do you do if
>they conflict? For example, if the linker script has
>
>.foo { *(.bar) xyz = .; *(.zed) }
>
>but the order file puts zed before bar, what do you do with xyz?
>
>Cheers,
>Rafael
May be restrict sorting to some areas of visibility.
Like for your example we take all inputs matching *.bar, sort them,
then handle xyz, then take all *zed and sort them.
So job of script is not interrupted and symbol-ordering-file works just
a kind of SORT() command.
George.
More information about the llvm-commits
mailing list