This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: ld -Map on a shared library
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Tremblay <w20777 at motorola dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 25 Mar 2004 14:12:56 -0500
- Subject: Re: ld -Map on a shared library
- References: <40632CE6.1030005@motorola.com>
Tremblay <w20777@motorola.com> writes:
> I'm trying to create a map file for a shared library. The command the
> average user would expect is "ld -Map <mapfile.map> <library.so>"
> Unfortunately, this creates a virtually empty symbol file. I've
> already tried --cref but that doesn't actually give you the addresses
> of the functions/variables.
The linker can create a map file when it creates a shared library. It
won't do so given an existing shared library.
Not all the information generated in the map file when creating a
shared library is available by inspecting an existing shared library.
Ian