This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

RE: Size of downloaded files?



On 18-Sep-2000 Andreas.Karlsson@combitechsystems.com wrote:
> How do I generate a linker map?
> 
> I tried with this and with Map at several other places.
> 
> /Andreas
> 
> arm-elf-gcc -mcpu=arm7di                         -nostartfiles
> -L//d/ecos-work/aeb/config2_install/lib -Map my_mapfile, -Wl,--gc-sections
> -o testprog testprog.o receiver.o  -Ttarget.ld -nostdlib
> 
> arm-elf-gcc: my_mapfile,: No such file or directory
> 
> arm-elf-gcc: unrecognized option `-Map'
> 
> make: *** [testprog] Error 1
> 
> bash-2.04$
> 

You need to pass the options as -Wl,xxx  Thus,
  -Wl,-Map -Wl,my_mapfile


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