public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Regarding GLOBAL OFFSET TABLE
@ 2008-04-04  8:45 Dileep Kumar
  2008-04-04 13:12 ` Gary Thomas
  0 siblings, 1 reply; 2+ messages in thread
From: Dileep Kumar @ 2008-04-04  8:45 UTC (permalink / raw)
  To: ecos-discuss, Gary Thomas

Hi,
Could you please tell me where _GLOBAL_OFFSET_TABLE_
is defined in the eCos code for MPC8260.

In the file "arch\current\src " ,there is a statement
         # Set up global offset table
        lwi     r2,_GLOBAL_OFFSET_TABLE_

I analyzed the code, but I could not find where GLOBAL OFFSET
TABLE(GOT)  is defined .

Could you please tell me ..
what are the contents of GOT table ?
 how much memory is allocated for GOT ?
 Which file contains GOT initialization ?

Thanks
Dileep Kumar

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Regarding GLOBAL OFFSET TABLE
  2008-04-04  8:45 [ECOS] Regarding GLOBAL OFFSET TABLE Dileep Kumar
@ 2008-04-04 13:12 ` Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2008-04-04 13:12 UTC (permalink / raw)
  To: Dileep Kumar; +Cc: ecos-discuss

Dileep Kumar wrote:
> Hi,
> Could you please tell me where _GLOBAL_OFFSET_TABLE_
> is defined in the eCos code for MPC8260.
> 
> In the file "arch\current\src " ,there is a statement
>          # Set up global offset table
>         lwi     r2,_GLOBAL_OFFSET_TABLE_
> 
> I analyzed the code, but I could not find where GLOBAL OFFSET
> TABLE(GOT)  is defined .
> 
> Could you please tell me ..
> what are the contents of GOT table ?
>  how much memory is allocated for GOT ?
>  Which file contains GOT initialization ?

This is all pure magic, handled by gcc/ld.  The symbol itself
is defined by the linker script to point at the section which
contains .got entries.

AFAIK, the EABI compiler does not generate any such sections,
but the code is in place in case we ever run into any.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-04 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-04  8:45 [ECOS] Regarding GLOBAL OFFSET TABLE Dileep Kumar
2008-04-04 13:12 ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).