How to control location of startup code?

Richard Earnshaw rearnsha@arm.com
Wed Mar 31 14:49:00 GMT 2004


> 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 '*'


>>   . = 0x1000;       /* code starts at 4K */

This is all covered in the gas and ld info pages (if a little tersely).

R.


------
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