[uClibc] crti.S, crtn.S and initfini.c
Erik Andersen
andersen at codepoet.org
Tue Jul 27 19:55:07 UTC 2004
On Tue Jul 27, 2004 at 12:21:04PM -0700, Philippe Vandermersch wrote:
> Hi,
>
> I am currently porting uClibc to the BSP15 SOC chip from Equator.
> I have already implemented crt0.c in C and it works ok. Busybox is
> running fine when linked against uClibc.
k, cool
> Now, I would like to test uClibc against C++ and I heard that in that
> case I need to implement crti.S and crtn.S
> I tried to have a look at the others architectures , but to be frank I
> do not understand what these implementations are actually doing.
>
> Can somebody sum up what these 2 files are supposed to do ?
They are there to cooperate with the gcc compiler to enable
constructor and destructor handling.
> It looks like originally, these 2 files were generated from initfini.c.
> (like in glibc)
> Can somebody send me a copy of that file initfini.c
Grab a copy of uClibc-0.9.21 and you can get initfini.c and
whatnot from that. See uClibc/libc/sysdeps/linux/common/Makefile
to see how these files used to be generated.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list