[ECOS] PowerPC: _GLOBAL_OFFSET_TABLE_ ?

Jonathan Larmour jifl@eCosCentric.com
Thu Mar 4 01:59:00 GMT 2004


Henning Baldersheim wrote:
> Hi
> 
> I am trying to get redboot to fit into the internal ram of the MPC555 
> that is 26K.
> That does not work very well as the _GLOBAL_OFFSET_TABLE_ starts at 32K 
> after .data. This is set in the powerpc.ld linker script.
> What is the _GLOBAL_OFFSET_TABLE_,  and what will happen if I move it ?

It's mostly used for position independent code. I don't know for definite 
with the PowerPC EABI, but I believe it's also used for small data/bss 
sections. In which case it won't matter where it points to as long as its 
within +/- 32K of all the .sdata and .sbss section contents.

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
 >>>>> Visit us in booth 2527 at the Embedded Systems Conference 2004 <<<<<
March 30 - April 1, San Francisco http://www.esconline.com/electronicaUSA/
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list