This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Position independent CODE with position dependent DATA ?


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

-- 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]