When I use ,--gc-sections for the linker, msp430-objdump fails:

msp430-gcc  main.o task.o -mmcu=msp430x148 
-Wl,-Map=test.elf.map,--cref,--gc-sections -o test.elf
msp430-objdump -g test.elf > test.lst

test.elf: .stab: stab entry 0 is corrupt, strx = 0x464c457f, type = 1
test.elf: .stab: stab entry 2 is corrupt, strx = 0x4000, type = 52
test.elf: .stab: stab entry 4 is corrupt, strx = 0xb000e, type = 68
debug_record_line: no current unit
Last stabs entries before error:
n_type n_desc n_value  string
2      105    00000001
NOMAP  32     00280000 OCUME~1/XHKJAMES/LOCALS~1/Temp/ccZjzG19.s
SLINE  55     00000000

>msp430-objdump -v
GNU objdump 030303 20030303

        Matthias

Reply via email to