How to control location of startup code?
Toralf Lund
toralf@procaptura.com
Wed Mar 31 14:54:00 GMT 2004
Richard Earnshaw wrote:
>>I really think there ought to be some way to match the startup code by
>>file name in the linker script, though...
>>
>>
>
>Yep, you can do that too, I think. It's something like:
>
>
>
>>>SECTIONS
>>>{
>>> . = 0x0000;
>>> ROM_START = .;
>>> .vectors : { vectors.o(.vectors) }
>>>
>>>
> ^^^^^^
>
>Note previously this was '*'
>
>
The problem is that as far as I can tell, this does not work for crt0.o,
at least not when implicitly loading the default one. In other words,
.vectors : { crt0.o(.vectors) }
doesn't work.
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list