public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Dileep Kumar <dileepkumart@gmail.com>
Cc: ecos-discuss@sourceware.org
Subject: Re: [ECOS] Regarding GLOBAL OFFSET TABLE
Date: Fri, 04 Apr 2008 13:12:00 -0000	[thread overview]
Message-ID: <47F607E9.3040604@mlbassoc.com> (raw)
In-Reply-To: <ed9edd1a0804032110y4e9fa09cod73eb68e95d620f6@mail.gmail.com>

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

      reply	other threads:[~2008-04-04 10:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04  8:45 Dileep Kumar
2008-04-04 13:12 ` Gary Thomas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47F607E9.3040604@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=dileepkumart@gmail.com \
    --cc=ecos-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).