Re: [arm-gnu] Regarding Entry Point in Codesourcery Assembler code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] Regarding Entry Point in Codesourcery Assembler code



On 8/31/2010 8:27 AM, Abhinav Varma wrote:
Hey,

How can we specify an entry point in an Assembler code file. The entry
point is for the entire build. I do not wish to put the
ENTRY(<LABEL_NAME>) in the linker script. Is there any alternative
option in the assembler file itself?

Thanks and Regards
Abhinav Varma

The ENTRY point is an ELF concept and setting it requires coordination with the linker.

CodeSourcery's CS3 provides this coordination and on bare-metal ARM EABI tools you can provide your own version of __cs3_reset e.g.

        .text
        .align 2
        .global __cs3_reset
        .type   __cs3_reset, %function
__cs3_reset:
	...

This overrides the default reset provided by the CS3 libraries, and the application ENTRY point is automatically set to your __cs3_reset.

For ARM GNU/Linux tools, you should not modify the ENTRY point unless you have a really good reason.

I hope that answers your questions.

Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@xxxxxxxxxxxxxxxx
(650) 331-3385 x716