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?


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


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