ld link map file format
Ian Lance Taylor
iant@google.com
Wed May 16 14:48:00 GMT 2007
"Rob Keeney" <robkeeney@gmail.com> writes:
> I have searched and searched and have not been able to find any
> documentation of the map file format output by ld. I need to know if
> there is anyway to determine if a symbol is a function, and if a
> symbol was provided by the linker.
The linker is part of the GNU binutils, not gcc, and questions about
it should be directed to the binutils@sourceware.org mailing list.
See http://sourceware.org/binutils/.
The map file does not tell you whether a symbol is a function. You
can of course use objdump or readelf on the linked executable to find
that out.
The map file will tell you whether a symbol was defined by the linker:
it will be in a section not associated with any input file, and will
have a linker script command on it. E.g.,
0x08049578 _end = .
Ian
More information about the Gcc-help
mailing list