[uClibc] Re: crt unacceptable "fix" removal

Peter S. Mazinger ps.m at gmx.net
Fri Oct 15 19:28:31 UTC 2004


On Fri, 15 Oct 2004, Manuel Novoa III wrote:

> Peter,
> 
> On Fri, Oct 15, 2004 at 07:50:54PM +0200, Peter S. Mazinger wrote:
> > On Fri, 15 Oct 2004, Manuel Novoa III wrote:
> > > Now, the utils are built with gcc-final... the uClibc-targeted compiler.
> > > So the libraries and crt*.o files used are those previously installed in
> > > the staging area, as is the case with every other application buildroot
> > > builds for the target.
> > 
> > Well, you are focused on buildroot, I haven't checked that,
> > what I am saying is that it does not work in a native uclibc env, where I 
> > would run make utils (w/o any special parameters,flags), so for this case 
> > (like already in gentoo and probably uwoody) the problem remains.
> 
> Fine... there are still problems in the cases you describe.  Actually,
> I'm not happy with my changes either.  But that doesn't change the fact
> that your patch was too ugly to live, and ripping it out was all I had
> time for.

What kind of patch would you accept?

I have thought a lot how I can change the gcc defaults, but it's no way 
out, nostdinc does nothing for linker stage, nostdlib (or nostartfiles) 
has to be used and the rest has to be provided manually. Well, I didn't 
found any other solution to it (someone w/ another idea?)

If first the crt0/1 stuff could be cleared, having only 1 version (see 
some earlier mail), after that this one would be smaller.

Could you explain me the case if CTOR_DTOR is not set, please?

shared libs:
Is the case you described about libpthread_db generic, so that the lib
won't need the gcc start/endfiles, and crt[in].o from libc?
If yes, it can be built w/
-nostartfiles or
-nostdlib -lgcc -lc


executable (dynamic and static)
does it need crt[01].o (one of them built accordingly)
does it need crtbegin*.o/crtend*.o provided by gcc?
does it need crt[in].o provided by libc (I have seen archs, where it 
provided by gcc)

Thanks, Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list