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: Re: [committed] TILE-Gx GOLD: better offset ranges for large got.


Hi Alan,

  Thanks for review.

  for tilegx, we initially point _GLOBAL_OFFSET_TABLE_ to the start of .got, all calculation is based on this. Now if we change the position where _GLOBAL_OFFSET_TABLE_ point to,  those relocation aginst _GLOBAL_OFFSET_TABLE_ will be affected, so we also change the offset with the same distance, then it should be OK.

  And tilegx do not have x86_64 style got header, we only reserve the first entry in .got which kept the address of .dynamic, all .plt stub will not be affected by the _GLOBAL_OFFSET_TABLE_ 

  Thanks

---
Jiong. Wang
Tilera Corporation

 -------- Original Message --------
Subject: Re: [committed] TILE-Gx GOLD: better offset ranges for large got.
Date: Wed, 3 Oct 2012 12:29:50 +0930
From: Alan Modra <amodra@gmail.com>
To: Walter Lee <walt@tilera.com>
CC: <binutils@sourceware.org>

On Tue, Oct 02, 2012 at 08:59:39PM -0400, Walter Lee wrote:
> 
> This patch adjust the value of _GLOBAL_OFFSET_TABLE_ for got bigger 
> than 0x8000 bytes, so that the 16 bit relocations have a greater 
> chance of working.

Don't you need to put the got header at _GLOBAL_OFFSET_TABLE_?

--
Alan Modra
Australia Development Lab, IBM



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