This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to control location of startup code?


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]