On 2006-05-15, Martin Collins <uid...@martin-collins.de> wrote:

> I've compiled my test.c with:
>
> msp430-gcc test.c -o test.elf -I /cygdrive/c/mspgcc/msp430/include 
> -mmcu=msp430x449 -g

When I use that command line, I get a test.elf file that
msp430-gdb loads fine.  Just curious: do you really need the -I
option?  If the compiler is properly installed, you shouldn't.

> The version of gcc is 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
>
> I get this message in gdb when I do "load test":
> "test.elf": not in executable format: File format not recognized

That's very odd.  When I do "load test" after compiling using
the line above, I get the error

 "test: No such file or directory."

Does the Cygwin-hosted version of msp430-gdb add on a ".elf" by
default? 

> test.elf has the keyword "ELF".

Sorry, I've no clue what that means.

What does this command output?

  $ file test.elf

How about this?

  $ objdump --section-headers test.elf
  
-- 
Grant Edwards                   grante             Yow!  My mind is making
                                  at               ashtrays in Dayton....
                               visi.com            


Reply via email to