]> git.ipfire.org Git - thirdparty/glibc.git/commit
Make sure GLRO(dl_pagesize) is initialized properly on all archs
authorMike Frysinger <vapier@gentoo.org>
Sun, 22 Aug 2010 15:32:46 +0000 (17:32 +0200)
committerPetr Baudis <pasky@suse.cz>
Tue, 16 Nov 2010 03:15:35 +0000 (04:15 +0100)
commitfd5ba40413efc0c95c0754341a76ada944aa1d5f
treef09855365257afff9cca2bb732bdb813f91bc719
parentfb8fb8464c2b5a44b69e62bcc3211b9c769416da
Make sure GLRO(dl_pagesize) is initialized properly on all archs

After a recent change to __getpagesize(), GLRO(dl_pagesize) is required
to be set.  But that is only done at app init, and shared libraries
dlopened at runtime by static apps dont have their GLRO() state
initialized from the linux auxvec.

ia64/mips have long had similar behavior with their __getpagesize(), but
they have a DL_STATIC_INIT hook to sync some of the static GLRO() fields
to the dynamic GLRO() fields.  Now that common linux code requires
GLRO(dl_pagesize) to be set, common linux code now needs that
DL_STATIC_INIT hook.

This patch takes the ia64 logic and promotes it to common code.
ChangeLog
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/dl-static.c [moved from sysdeps/unix/sysv/linux/ia64/dl-static.c with 93% similarity]
sysdeps/unix/sysv/linux/ia64/Makefile
sysdeps/unix/sysv/linux/ia64/getpagesize.c [deleted file]
sysdeps/unix/sysv/linux/ia64/ldsodefs.h [deleted file]
sysdeps/unix/sysv/linux/ldsodefs.h