about summary refs log tree commit diff
path: root/ports/sysdeps/unix/sysv/linux/tile/Makefile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-07-03 14:48:39 -0400
committerChris Metcalf <cmetcalf@tilera.com>2013-07-07 11:33:25 -0400
commit95a4e1ea3b019e60bb260d6e70b1657ea27770e8 (patch)
tree3df1eb87dc89ceaf0e22cf6d152eeb63d2a67bbf /ports/sysdeps/unix/sysv/linux/tile/Makefile
parentb68c2231254e47245352af23b1f9b93f68149bda (diff)
downloadglibc-95a4e1ea3b019e60bb260d6e70b1657ea27770e8.tar.gz
glibc-95a4e1ea3b019e60bb260d6e70b1657ea27770e8.tar.xz
glibc-95a4e1ea3b019e60bb260d6e70b1657ea27770e8.zip
tile: use _dl_static_init to set GLRO(gl_pagesize)
A recently-added test (dlfcn/tststatic5) pointed out that tile was not
properly initializing the variable pagesize in certain cases.  This
change just copies the existing code from MIPS.
Diffstat (limited to 'ports/sysdeps/unix/sysv/linux/tile/Makefile')
-rw-r--r--ports/sysdeps/unix/sysv/linux/tile/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/tile/Makefile b/ports/sysdeps/unix/sysv/linux/tile/Makefile
index 1c0c968dc1..0bcb95f63a 100644
--- a/ports/sysdeps/unix/sysv/linux/tile/Makefile
+++ b/ports/sysdeps/unix/sysv/linux/tile/Makefile
@@ -16,4 +16,10 @@ 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