From 7b1f8b581f9387230788e4d8a67cdbcf464dac85 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 23 Jul 2013 07:39:57 -0500 Subject: 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. --- sysdeps/unix/sysv/linux/powerpc/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysdeps/unix/sysv/linux/powerpc/Makefile') 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) -- cgit 1.4.1