[ECOS] MIPS question: _gp = (. + 0x8000);

Michael Anburaj embeddedeng@hotmail.com
Wed Feb 18 20:08:00 GMT 2004


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



More information about the Ecos-discuss mailing list