This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: stt_notype question.
- From: Ian Lance Taylor <ian at airs dot com>
- To: Yuval Turgeman <yuval at il dot linuxqa dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 14 May 2002 09:53:04 -0700
- Subject: Re: stt_notype question.
- References: <3CE13A7A.8050702@il.linuxqa.com>
Yuval Turgeman <yuval@il.linuxqa.com> writes:
> I've been messing around with ld a little bit lately.
> I'm not sure this is the place to post my question but I'd really like
> to know this since I couldn't find any references about this
> matter. How do symbols of type STT_NOTYPE get relocated if we don't
> have any information about them in an ELF ?
The type of a symbol doesn't have much to do with the way it is
relocated. Normally a symbol is relocated based on relocation
entries. The type of the symbol only comes into play in a couple of
cases. For example, an STT_FUNC symbol gets a PLT entry, whereas an
STT_OBJECT (or STT_NOTYPE) symbol gets a GOT entry.
Ian