selecting the right target...

Adrian von Bidder avbidder@acter.ch
Wed Dec 19 02:42:00 GMT 2001


On Wed, 2001-12-19 at 10:52, Phil Blundell wrote:
> >I would be glad if somebody would be kind to tell me which is better:
> > - take the existing arm-uclinux target and override
> >	(START|END)FILE_SPEC with those from unknown-elf.h
> 
> Do this one.  The fact that it gets the name of crt0.o wrong at the moment is
> just a bug.

Ok, did this. But the problem is that the crtbegin/crtend.o contain a
lot more functions than they do for the arm-elf target.

The "flat" binary format we use with uclinux does not have the .init and
.fini sections so all these global_[cd]tors support routines can go
away. What is the Right Way[tm] to do this? (I'll have a look around and
try to #undef some things, but I don't know which ones are the right
ones).

Basically, both files can be just empty for uclinux. (As it is now with
the arm-elf target on 2.95).

greets from Zürich
-- vbi



More information about the Gcc mailing list