about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/powerpc/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-07-23 07:39:57 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2013-07-23 07:39:57 -0500
commit7b1f8b581f9387230788e4d8a67cdbcf464dac85 (patch)
tree6de853b342d5e0648345dfef945afa15247fe8bb /sysdeps/unix/sysv/linux/powerpc/Makefile
parente7074e4c5edb0acaa979ea08e533736f906a9d68 (diff)
downloadglibc-7b1f8b581f9387230788e4d8a67cdbcf464dac85.tar.gz
glibc-7b1f8b581f9387230788e4d8a67cdbcf464dac85.tar.xz
glibc-7b1f8b581f9387230788e4d8a67cdbcf464dac85.zip
PowerPC: use _dl_static_init to set GLRO(gl_pagesize)
This patch fixes dlfcn/tststatic5 for PowerPC where pagesize
variable was not properly initialized in certain cases. This patch
is based on other architecture code.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/Makefile')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/Makefile b/sysdeps/unix/sysv/linux/powerpc/Makefile
index 4ff7e849c3..cf4de974f6 100644
--- a/sysdeps/unix/sysv/linux/powerpc/Makefile
+++ b/sysdeps/unix/sysv/linux/powerpc/Makefile
@@ -15,6 +15,12 @@ endif
 
 ifeq ($(subdir),elf)
 sysdep_routines += dl-vdso
+ifeq ($(build-shared),yes)
+# This is needed for DSO loading from static binaries.
+sysdep-dl-routines += dl-static
+sysdep_routines += dl-static
+sysdep-rtld-routines += dl-static
+endif
 endif
 
 ifeq ($(subdir),misc)