[uClibc] Proposal adding -z defs by default
Joakim Tjernlund
joakim.tjernlund at lumentis.se
Thu Nov 4 09:43:25 UTC 2004
> On Wed Nov 03, 2004 at 06:02:59PM +0100, Joakim Tjernlund wrote:
>
> > > but sadly it does
> > > indeed whine about missing main, and we can't add even a weak
> > > main to libc or badness will ensue. Might be possible to link
> >
> > Badness being ld NOT complaining about missing main when it should?
>
> yep.
>
> > > libuClibc twice, with a script wrapping up ld and filtering
> > > stdout for 'main' and only emitting an error for additional
> > > output....
> >
> > hmm, maybe one can move the reference to main into the crt* files
> > somehow? Would that be even possible?
>
> Done long since... :-) but since crt* is not a part of the libc
> library itself, that doesn't help with using -z defs for uClibc.
hmm, but __uClibc_main.c still references main, so I am not sure
what you mean here.
What if __uClibc_main.c reference a function ptr instead and
that function ptr is initialized by the crt* files to point
to the main function?
Jocke
More information about the uClibc
mailing list