This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]