This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about compilation details


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]