Oh sorry, I misunderstood you. I need to have the option -uInterruptVector!
Good to know, something for the docs.
M.
On Mon, Dec 15, 2003 at 12:02:56PM +0300, Dmitry wrote:
> Again, do not forget -Wl,-uInterruptVector !!!
> I just tried:
> msp430-gcc m.c -mmcu=msp430x149 -O2 -ffunction-sections
> -Wl,--gc-sections
>
> -Wl,-uInterruptVectors -o main.elf -g
>
> And it works fine.
> ~d
>
>
> On Monday 15 December 2003 11:58, Matthias Weingart wrote:
> > 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
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IBM Linux Tutorials.
> > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> > Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> > _______________________________________________
> > Mspgcc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
> --
> /*****************************************************************
> ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
> `6_ 6 ) `-. ( ).`-.__.`) State Polytechnical Univ.
> (_Y_.)' ._ ) `._ `. ``-..-' Radio-Physics Departament
> _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
> (il),-'' (li),' ((!.-' +7 (812) 5403923, 5585314
> *****************************************************************/
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Matthias