On Thu, 18 Dec 2003 07:04:38 -0600, Bill Knight wrote:

On Thu, 18 Dec 2003 08:45:39 -0300, James Henry Dodd wrote:

> Try

> msp430-gcc.exe -D__DEBUG__ -D__MSP430_123__ obj\AmRam.o
> obj\AmMain.o -o
> "Final\AuMod.elf" -L"E:\mspgcc\lib" -Wl,-Map Final\AuMod.map

> and if you add ,--cref immediately after ".map" (no spaces) you
> will get a cross reference.

> Reagrds
> -Bill Knight
> R O SoftWare


Thanks Bill - that was embarassingly obvious!
The cross reference isn't working, though. Here's the output:
msp430-gcc.exe -D__DEBUG__ -D__MSP430_123__ obj\AmRam.o obj\AmMain.o -o
Final\AuMod.elf -LE:\mspgcc\lib -Wl,-Map Final\AuMod.map,--cref
msp430-gcc: Final\AuMod.map,--cref: No such file or directory
make: *** [Final\AuMod.elf] Error 1

The other aspect which I find strange is that if I delete the map file, ld
doesn't create it (I get a "No such file or directory" error). If I create
the file manually it overwrites it with no problem. Is that normal?

========================================================================
I may have not given you the whole truth.  Also, the map files I create
are in the same directory and the DOS specification you use may be causing
a problem.  So please let me try again.

msp430-gcc.exe -D__DEBUG__ -D__MSP430_123__ obj\AmRam.o obj\AmMain.o -o
 "Final\AuMod.elf" -L"E:\mspgcc\lib" -Wl,-Map "Final\AuMod.map" -Wl,--cref

or possibly

msp430-gcc.exe -D__DEBUG__ -D__MSP430_123__ obj\AmRam.o obj\AmMain.o -o
 "Final\AuMod.elf" -L"E:\mspgcc\lib" -Wl,-Map Final/AuMod.map -Wl,--cref

========================================================================

Sorry, did it again. Note the equals (=) sign after -Map

msp430-gcc.exe -D__DEBUG__ -D__MSP430_123__ obj\AmRam.o obj\AmMain.o -o
 Final\AuMod.elf -LE:\mspgcc\lib -Wl,-Map=Final\AuMod.map,--cref

or

msp430-gcc.exe -D__DEBUG__ -D__MSP430_123__ obj\AmRam.o obj\AmMain.o -o
 "Final\AuMod.elf" -L"E:\mspgcc\lib" -Wl,-Map="Final\AuMod.map",--cref

or

msp430-gcc.exe -D__DEBUG__ -D__MSP430_123__ obj\AmRam.o obj\AmMain.o -o
 "Final\AuMod.elf" -L"E:\mspgcc\lib" -Wl,-Map=Final/AuMod.map,--cref

-Bill



Reply via email to