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

Meador Inge via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 15:28:51 PST 2017


On Mon, Jan 09, 2017 at 04:14:48PM -0500, Rafael Avila de Espindola wrote:

> I don't think that is the correct way.
> 
> The meaning of ABS on ELF is that the value is really absolute. It
> doesn't represent any position in the file. It is a bug that bfd doesn't
> always behave that way (see
> https://groups.google.com/forum/#!topic/generic-abi/MC4b4sqnKC0).
> 
> This means that being absolute is just a property of the expression. We
> have to track it as the expression is constructed so that ". + 42" is
> not absolute, "ADDR(foo) + 42" is not absolute, etc.

Ah, thanks for the explanation and the link.  Much appreciated!

Cheers,

-- 
Meador Inge
meadori at codesourcery.com
CodeSourcery / Mentor Embedded


More information about the llvm-commits mailing list