This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
MIPS question: _gp = (. + 0x8000);
- From: "Michael Anburaj" <embeddedeng at hotmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 18 Feb 2004 20:08:09 +0000
- Subject: [ECOS] MIPS question: _gp = (. + 0x8000);
- Bcc:
Hi,
I have a question regarding the following line found in a lot of MIPS linker
scripts:
_gp = (. + 0x8000);
_gp gets loaded into $gp. How does this value ?_gp? relate with access to
.sdata & .sbss session using $gp?
Why is 0x8000 added (to the foot of .sdata section)? To Place $gp halfway in
the 64KB $gp accessible space??
Can you point to a detailed material on this?
Thanks,
-Mike.
_________________________________________________________________
Store more e-mails with MSN Hotmail Extra Storage ? 4 plans to choose from!
http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss