[PATCH] more adjustments to elf_find_function
Alan Modra
amodra@bigpond.net.au
Tue Nov 30 22:42:00 GMT 2004
I think this patch is wrong. If we are generating object files
according to the ELF spec, then any file symbols will come first.
"STT_FILE
Conventionally, the symbol's name gives the name of the source file
associated with the object file. A file symbol has STB_LOCAL
binding, its section index is SHN_ABS, and it precedes the other
STB_LOCAL symbols for the file, if it is present."
ie. any state machine tracking whether symbols are seen before/after a
file symbol is a waste of time. If ld -r is not placing all file
symbols at the start, then that's a bug.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Binutils
mailing list