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: Bfd/binutils inconsistency re: *UND* and *ABS* and relocsagainst dummy (STT_NOTYPE) symbol entries in elf symbol tables!?


Ian Lance Taylor <ian@wasabisystems.com> writes:

>>  -  Sometimes (objdump) this dummy entry is discarded when the symbol table
>> is read; then a reloc against symbol #0 actually refers to the first real
>> entry in the symbol table, which corresponds to the filename symbol.
>
> Sounds buggy.

objdump presents a somewhat canonicalized symbol table, and the special
undefined symbol has no name, which is probably why it's not shown here.
BFD represents it by an absolute symbol with the value 0.  The fact that a
relocation against the undefined symbol is shown in this way may be
confusing, but I don't think there is anything wrong with it.  The symbol
with the empty name has nothing to do with this filename symbol, which
just happens to have the same value, but has a different (non-empty) name.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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