On Mon, Dec 15, 2003 at 11:26:14AM +0300, Dmitry wrote:
>
> As simple as:
> -ffunction-sections -Wl,--gc-sections -Wl,-uInterruptVectors
Thx ~d, I tried the first options, but as I wrote in a previous posting
there must be something wrong. The failure is in the elf-file.
The debugger cannot load it also.
>msp430-objdump -DSg main.elf > main.lst
main.elf: .stab: stab entry 0 is corrupt, strx = 0x464c457f, type = 1
main.elf: .stab: stab entry 2 is corrupt, strx = 0x1100, type = 52
main.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/cc07sSok.s
SLINE 55 00000000
msp430-gcc main.c -mmcu=msp430x149 -g -O2 -ffunction-sections -Wl,--gc-sections
-o main.elf
msp430-objdump -DSg main.elf > main.lst
msp430-objcopy -O ihex main.elf main.hex
and this is main.c:
func1()
{
}
func2()
{
}
main()
{
func1();
}
Matthias