This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ...but now


"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   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]