[PATCH] D27276: [ELF] Allow defined symbols to be assigned from linker script

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 11:08:49 PST 2017


> With that, I can get the desired behavior for replacing symbols *however* there is still one test failing: `lld :: ELF/mips-gp-ext.s`.  The reason this fails is that the expression ` _gp = . + 0x100;` gets put in the wrong section.  In particular, it gets put in `.text` instead of `*ABS*`.  This section assignment problem is due to another bug in lld that needs to be invested.

If there is a '.' in it it should not be ABS. Can you use ABSOLUTE(.) +
0x100?

Cheers,
Rafael


More information about the llvm-commits mailing list