This is the mail archive of the
mailing list for the eCos project.
Re: [ECOS] PowerPC: _GLOBAL_OFFSET_TABLE_ ?
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Henning Baldersheim <henning dot baldersheim at devoll dot no>
- Cc: ecos-devel at sources dot redhat dot com, ecos-discuss at sources dot redhat dot com
- Date: Thu, 04 Mar 2004 01:59:36 +0000
- Subject: Re: [ECOS] PowerPC: _GLOBAL_OFFSET_TABLE_ ?
- References: <email@example.com>
Henning Baldersheim wrote:
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.
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