[uClibc] Implement __libc_stack_end in uClibc?
vapier at gentoo.org
Mon Jun 27 17:52:37 UTC 2005
On Monday 27 June 2005 09:42 am, Joakim Tjernlund wrote:
> > On Sunday 26 June 2005 12:50 pm, Joakim Tjernlund wrote:
> > > How to make only libc.a contain __libc_stack_end and not libc.so?
> > that is a tricky fish ...
> > how about after the final ar for libc.a, you cp libc.a to like
> > libc_so_input.a, run $(AR) r libc.a <libc stack end thingy>.o, and then
> > when you create libc.so, use the libc_so_input.a archive ...
> > if in the future we need to do this with more than the libc stack end, we
> > can start generating a sep obj list
> I got the impression that uClibc rebuilds the libc archive when generating
> the shared version. Maybe its possible to add an extra C file to the static
> build only?
the make dependency is such that the libc.a is generated first and then
libc.so is generated from the libc.a
> Need to check this more, but currently have very little time. Once the
> build issuess are sorted it will be very fast to impl __libc_stack_end.
i can post a patch if you like
More information about the uClibc