stt_notype question.
Ian Lance Taylor
ian@airs.com
Tue May 14 09:53:00 GMT 2002
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
More information about the Binutils
mailing list