section .vectors will not be linked if you pass
-nostartfiles -nostandartlibs
However, linker will assign this section and you'll have to define your own
section .vectors _AS_ follows:
.section .vectors, "ax", @progbits
nothing else will work.
Consult manual for more details :)
~d
On Thursday 02 December 2004 14:19, Ralf Hildebrandt wrote:
> Hi all!
>
> I try to get msp430-gcc running with pure assembler input. The file test.S
> looks like
> this:
> ;--------------------------------------------------------------------------
>--- .section .text
>
> .global main
> .type main,@function
> main: jmp main
> ;--------------------------------------------------------------------------
>--- with the command
>
> msp430-gcc -g -O2 -mmcu=msp430x149 -D_GNU_ASSEMBLER_ -x assembler -Wall
> test.S -o test.elf
>
> I get an output, that is running well, but includes the function
> _reset_vector__ and the interrupt vector table is generated automatically.
> But I want to define everything manually. As an example if I modify the
> source code
> to
> ;--------------------------------------------------------------------------
>--- .section .text
>
> .global main
> .type main,@function
> main: jmp main
>
> ISR:
> reti
>
> ;--------------------------------------------------------------------------
>--- ; Interrupt
> Vectors
> ;--------------------------------------------------------------------------
>--- .section .vectors
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word ISR
> .word main
> ;--------------------------------------------------------------------------
>--- and use the command line
>
> msp430-gcc -g -O2 -mmcu=msp430x149 -D_GNU_ASSEMBLER_ -x assembler
> -nostartfiles -nostandartlibs -Wall test.S -o test.elf
>
> then automatic generation of _reset_vector__ and the interrupt vector table
> is forbidden, but in the ELF output file I can't find section .vectors!
>
> What do I do wrong or what is missing?
>
>
> Furthermore: Does a manual about msp430-gcc assembler syntax (maybe with
> comparison to IAR's syntax) and command line options exist?
>
> Thanks!
> Ralf
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users