Position independent CODE with position dependent DATA ?

John Reiser jreiser@bitwagon.com
Wed Jul 7 17:06:00 GMT 2010


On 07/07/2010 07:58 AM, Renaud wrote:
> Our script is already using MEMORY statements: CODE and read-only DATA
> are placed in ROM, and DATA in RAM.
> 
> In fact the problem is only the GOT (we need to be at a fixed known
> address) ...

> We need to tell LD that the GOT table is located @0x4000 (fixed), and
> not relatively to current PC.

Implement a new loader option which would be specified to gcc as

    -Wl,-z,fixedGOT=0x4000

-- 



More information about the Binutils mailing list