...but now
Ulrich Drepper
drepper@redhat.com
Fri Jan 5 09:35:00 GMT 2001
"H . J . Lu" <hjl@valinux.com> writes:
> I have a second thought on the aux vector with static binaries.
> Right now, non_dynamic_init is called from __libc_init_first
> in libc-start.c. It is no way to know when non_dynamic_init will
> be called.
It's easy enough to add a direct call in __libc_start_main. No big
code shuffling necessary.
> If _dl_pagesize is not set before getpagesize is first
> used, I don't think it will be good, especially on ia64. Also I think
> _dl_important_hwcaps may be also useful for loading DSO from static
> binaries.
That's unimportant. Static applications depending on DSOs are
questionable. Those depending on DSO in global constructors are
plainly broken. Dynamic loading in static applications will never
ever fully work, this cannot be used as an argument.
> BTW, non_dynamic_init is incorrect for PPC.
This is not helpful.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list