[PATCH] D27276: [ELF, WIP] Allow defined symbols to be assigned from linker script
Meador Inge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 13:53:25 PST 2016
meadori added a comment.
I want to be able to override *any* symbol's value (which is support in GNUnLD, for example). Currently LLD issues multiple definition errors if I say something like:
foo = 1
and `foo` is defined in an object file or something.
The `_gp` thing was just a issue I ran into while implementing the general ability to redefine a symbol's value from a linker script because `_gp` is defined by the linker relative to `.got` and thus causes problems when completely overriding it from a linker script.
https://reviews.llvm.org/D27276
More information about the llvm-commits
mailing list