Re: ld link map file format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Rob Keeney" <robkeeney@xxxxxxxxx> 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@xxxxxxxxxxxxxx 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux