[PATCH] Put __dso_handle in .sdata/.sbss on ia64

Jeff Law law@redhat.com
Wed Jun 5 22:28:00 GMT 2019


On 6/1/19 6:30 PM, James Clarke wrote:
> The symbol is exposed to C by dso_handle.h, and since it's a single
> 8-byte pointer, it is just within the threshold for being in the small
> data (or bss) section, so code accessing it will use GP-relative
> addressing. Therefore we must put it in .sdata/.sbss in case our other
> data sections grow too big and we overflow the 22-bit relocation.
> 
> libgcc/
> 	* config/ia64/crtbegin.S (__dso_handle): Put in .sdata/.sbss
> 	rather than .data/.bss so it can be accessed via gp-relative
> 	addressing.
THanks.  Ive installed this on the trunk.

jeff



More information about the Gcc-patches mailing list