This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Re: stt_notype question.


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


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