This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Question about compilation details
- From: Andrew Haley <aph at redhat dot com>
- To: eduardo <eduardo at medx dot com dot br>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 24 Apr 2008 16:44:02 +0100
- Subject: Re: Question about compilation details
- References: <1e747bdc758f52ce009e02ff7529a63d@medx.com.br>
Redirected to gcc-help.
eduardo wrote:
> Hi.
> I'm using the arm-elf-gcc compiler to compile some files to a ARM9 (Freescale i.MX27, ARM926EJ-S core). What I would like to know is how can I visualize/change the address specifications made by the linker to the output file? I heard gcc can generate a file (.lst) that contains such information, but I also don't know how to create this file.
You really ought to ask the binutils list, but to get an address
map from linking use:
-Wl,-Map,linkmap
if you're using gcc to link, or if you're linking with ld use
-Map linkmap
To *control* linking you're going to need to create a linker script,
and you really need to go to the binutils list for that.
Andrew.