Install an additional CRT file

Tomer Levi
Mon Jul 12 12:25:00 GMT 2004

Hi all,

I'm a newbie to newlib and I'm trying to port newlib for a new 
architecture (named CRX, a National-Semiconductor product).
Everything is going great except one thing :
I'm using two files for initialization stuff : crt0.S and init_all.c.
I would like init_all.o to be installed under the 'lib' directory, 
together with crt0.o and the other generated libraries.
init_all.o is called by crt0.o and is used only for initialization stuff, 
thus i would like it to reside outside libc.a library.

So far i haven't found the appropriate hook for this.
I tried renaming init_all.o to crt1.o and add 'crt1' and 'crt1_dir' 
variables to (as done by other architectures) , 
but apparently crt1.o just overrides crt0.o.

Can someone help me with this annoying problem ?
Any help would be highly appreciated.

      Tomer Levi

Software Engineer                                   phone: 
CompactRISC Development Tools  fax:        +49-8141-35-11-1378
National Semiconductor GmbH
Livry-Gargan Str. 10                                internet:
82256 Fuerstenfeldbruck, Germany

More information about the Newlib mailing list