gas rearranging elf file symbols
Alan Modra
amodra@bigpond.net.au
Fri Oct 8 06:29:00 GMT 2004
More information about the Binutils mailing list
Fri Oct 8 06:29:00 GMT 2004
- Previous message (by thread): gas rearranging elf file symbols
- Next message (by thread): gas rearranging elf file symbols
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Oct 08, 2004 at 03:23:19PM +0930, Alan Modra wrote:
> the correct file. You can't do better for globals of course, since
> global symbols are placed after local symbols, losing any association
> you might infer from the symbol ordering.
Actually, you can't do much about local symbols either. The ELF gABI
says:
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.
>From that wording you could also infer that there should only be one
file symbol, that of the main source file.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
- Previous message (by thread): gas rearranging elf file symbols
- Next message (by thread): gas rearranging elf file symbols
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list