[uClibc]cvs commit to uClibc/sysdeps/linux/i386 by andersen

AVENARD,JEAN-YVES (HP-Australia,ex2) jean-yves_avenard at hp.com
Fri Feb 9 07:06:58 UTC 2001


Hello Erik.

I've just finished the port to SH architecture and I'm very interested in
the changes you've made here.
As you can guess I've re-used what has been done in crt0.S for the arm
architecture and the i386 architecture.

First of all, about crt0.S, why have you removed the __libc_init call as it
was doing nothing (just calling void_void_null_func). Surely, it makes
things easier to understand, but after having spent a lot of time trying to
understand what the $@!$!@ was these functions for ...

Regarding vfork.c
Your comments says that it was completely broken.. In which way?
In my SH implementation, I've directly re-used the i386 code which is simply
a system call to vfork in the kernel.
Your new version is much more complicated and in pure ML, what is it doing
exactly, and what was wrong in the previous version. Obviously it's adding a
significant new task to my SH port.

Another question, not related to the architecture dependant files, when
trying to do: printf("argv=%x,argv);
When linking my files I got the following error:
libc.a(ultostr.o): In function `__ultostr':
ultostr.o(.text+0x60): undefined reference to `__udivsi3'

Is %x not supported in uclibc, or where should I have the unsigned division
function ?

Anyway I'm pretty happy, 
the following code:
main(int argc, char **argv)
{
puts("hello world\n");
}

Is now working on SH architecture, and is taking only 4KB of space instead
of 200KB with glibc... Can start some real work now ..

Thank you for helping me on my issues.
Best regards
Jean-Yves

---
Jean-Yves Avenard
Hewlett-Packard - Embedded and Personal Systems / Platform Technology Group
351 Burwood Hwy, Forest Hill, Victoria 3130 - Australia
Tel: +61 3 88773740 - Fax: +61 3 9802 7714 - mail: jean-yves_avenard at hp.com
 

> -----Original Message-----
> From: andersen at cvs.uclinux.org [mailto:andersen at cvs.uclinux.org]
> Sent: Friday, 9 February 2001 17:41 PM
> To: uclibc at uclibc.org
> Subject: [uClibc]cvs commit to uClibc/sysdeps/linux/i386 by andersen
> 
> 
> Repository: uClibc/sysdeps/linux/i386
> who:        andersen
> time:       Fri Feb  9 01:40:46 EST 2001
> 
> 
> Log Message:
> 
> Revert stdio to initializing itself.  Not quite a pretty but 
> that ensures that
> we don't blow up by using too much stack space, and 
> simplifies the job of
> supporting new architectures, since they don't have to mess 
> with calling foo
> init functions in crt0 and cleaning up the resulting damage.
>  -Erik
> 
> 
> Files:
> 
> changed:    crt0.S
> 
> 
> 
> _______________________________________________
> uclibc mailing list
> uclibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc
> 





More information about the uClibc mailing list