[PATCH] D31147: [ELF] Allow references to reserved symbols in linker scripts
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 18:58:34 PDT 2017
phosek added a comment.
In https://reviews.llvm.org/D31147#706917, @ruiu wrote:
> It's not obvious what you are fixing with this patch. Can you describe a little?
Yes, we'd like to be able to reference reserved symbols from input linker scripts, e.g. `PROVIDE_HIDDEN(newsym = __ehdr_start)` (where `__ehdr_start` could be any other reserved symbol like `__edata_start__`). This currently fails with `__ehdr_start` being reported as undefined symbol. This is something that both GNU linker handle fine. One use case for this feature is an alternative solution to https://reviews.llvm.org/D26133.
Repository:
rL LLVM
https://reviews.llvm.org/D31147
More information about the llvm-commits
mailing list