bca718
Needed to get future uses of all-dl-routines to include
bca718
__get_cpu_features into the right shared object routines.
bca718
bca718
commit ac9e0e5e401fa634667a8284a0db0ca886bf816b
bca718
Author: Roland McGrath <roland@hack.frob.com>
bca718
Date:   Fri Feb 6 10:42:08 2015 -0800
bca718
bca718
    Clean up sysdep-dl-routines variable.
bca718
bca718
Index: glibc-2.17-c758a686/elf/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/elf/Makefile
bca718
+++ glibc-2.17-c758a686/elf/Makefile
bca718
@@ -22,7 +22,7 @@ subdir		:= elf
bca718
 include ../Makeconfig
bca718
 
bca718
 headers		= elf.h bits/elfclass.h link.h bits/link.h
bca718
-routines	= $(dl-routines) dl-support dl-iteratephdr \
bca718
+routines	= $(all-dl-routines) dl-support dl-iteratephdr \
bca718
 		  dl-addr enbl-secure dl-profstub \
bca718
 		  dl-origin dl-libc dl-sym dl-tsd dl-sysdep
bca718
 
bca718
@@ -43,7 +43,7 @@ shared-only-routines += dl-caller
bca718
 
bca718
 # ld.so uses those routines, plus some special stuff for being the program
bca718
 # interpreter and operating independent of libc.
bca718
-rtld-routines	:= rtld $(dl-routines) dl-sysdep dl-environ dl-minimal
bca718
+rtld-routines	= rtld $(all-dl-routines) dl-sysdep dl-environ dl-minimal
bca718
 all-rtld-routines = $(rtld-routines) $(sysdep-rtld-routines)
bca718
 
bca718
 CFLAGS-dl-runtime.c = -fexceptions -fasynchronous-unwind-tables
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/aarch64/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/aarch64/Makefile
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/aarch64/Makefile
bca718
@@ -2,8 +2,6 @@ long-double-fcts = yes
bca718
 
bca718
 ifeq ($(subdir),elf)
bca718
 sysdep-dl-routines += tlsdesc dl-tlsdesc
bca718
-sysdep_routines += tlsdesc dl-tlsdesc
bca718
-sysdep-rtld-routines += tlsdesc dl-tlsdesc
bca718
 gen-as-const-headers += dl-link.sym
bca718
 endif
bca718
 
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/arm/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/arm/Makefile
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/arm/Makefile
bca718
@@ -3,8 +3,8 @@ static-gnulib-arch = $(elfobjdir)/libgcc
bca718
 
bca718
 ifeq ($(subdir),elf)
bca718
 sysdep-dl-routines += tlsdesc dl-tlsdesc
bca718
-sysdep_routines += aeabi_unwind_cpp_pr1 find_exidx tlsdesc dl-tlsdesc
bca718
-sysdep-rtld-routines += aeabi_unwind_cpp_pr1 tlsdesc dl-tlsdesc
bca718
+sysdep_routines += aeabi_unwind_cpp_pr1 find_exidx
bca718
+sysdep-rtld-routines += aeabi_unwind_cpp_pr1
bca718
 shared-only-routines += aeabi_unwind_cpp_pr1
bca718
 
bca718
 $(objpfx)libgcc-stubs.a: $(objpfx)aeabi_unwind_cpp_pr1.os
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/hppa/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/hppa/Makefile
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/hppa/Makefile
bca718
@@ -24,8 +24,6 @@ LDFLAGS-c_pic.os += -Wl,--unique=.text*
bca718
 ifeq ($(subdir),elf)
bca718
 CFLAGS-rtld.c += -mdisable-fpregs
bca718
 sysdep-dl-routines += dl-symaddr dl-fptr
bca718
-sysdep_routines += $(sysdep-dl-routines)
bca718
-sysdep-rtld-routines += $(sysdep-dl-routines)
bca718
 endif
bca718
 
bca718
 ifeq ($(subdir),csu)
bca718
Index: glibc-2.17-c758a686/sysdeps/i386/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/i386/Makefile
bca718
+++ glibc-2.17-c758a686/sysdeps/i386/Makefile
bca718
@@ -74,8 +74,6 @@ endif
bca718
 
bca718
 ifeq ($(subdir),elf)
bca718
 sysdep-dl-routines += tlsdesc dl-tlsdesc
bca718
-sysdep_routines += tlsdesc dl-tlsdesc
bca718
-sysdep-rtld-routines += tlsdesc dl-tlsdesc
bca718
 endif
bca718
 
bca718
 ifeq ($(subdir),csu)
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/ia64/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/ia64/Makefile
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/ia64/Makefile
bca718
@@ -17,6 +17,4 @@ endif
bca718
 
bca718
 ifeq ($(subdir),elf)
bca718
 sysdep-dl-routines += dl-symaddr dl-fptr
bca718
-sysdep_routines += $(sysdep-dl-routines)
bca718
-sysdep-rtld-routines += $(sysdep-dl-routines)
bca718
 endif
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/Makefile
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/Makefile
bca718
@@ -14,8 +14,6 @@ endif
bca718
 
bca718
 ifeq ($(subdir),elf)
bca718
 sysdep-dl-routines += dl-static
bca718
-sysdep_routines += $(sysdep-dl-routines)
bca718
-sysdep-rtld-routines += $(sysdep-dl-routines)
bca718
 endif
bca718
 
bca718
 ifeq ($(subdir),rt)
bca718
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/mips/Makefile
bca718
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/mips/Makefile
bca718
@@ -49,8 +49,6 @@ ifeq ($(subdir),elf)
bca718
 ifeq ($(build-shared),yes)
bca718
 # This is needed for DSO loading from static binaries.
bca718
 sysdep-dl-routines += dl-static
bca718
-sysdep_routines += dl-static
bca718
-sysdep-rtld-routines += dl-static
bca718
 endif
bca718
 endif
bca718
 
bca718
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/powerpc/Makefile
bca718
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/Makefile
bca718
@@ -21,8 +21,6 @@ sysdep_routines += dl-vdso
bca718
 ifeq ($(build-shared),yes)
bca718
 # This is needed for DSO loading from static binaries.
bca718
 sysdep-dl-routines += dl-static
bca718
-sysdep_routines += dl-static
bca718
-sysdep-rtld-routines += dl-static
bca718
 endif
bca718
 endif
bca718
 
bca718
Index: glibc-2.17-c758a686/sysdeps/x86_64/Makefile
bca718
===================================================================
bca718
--- glibc-2.17-c758a686.orig/sysdeps/x86_64/Makefile
bca718
+++ glibc-2.17-c758a686/sysdeps/x86_64/Makefile
bca718
@@ -20,8 +20,6 @@ endif
bca718
 
bca718
 ifeq ($(subdir),elf)
bca718
 sysdep-dl-routines += tlsdesc dl-tlsdesc
bca718
-sysdep_routines += tlsdesc dl-tlsdesc
bca718
-sysdep-rtld-routines += tlsdesc dl-tlsdesc
bca718
 
bca718
 tests += tst-quad1 tst-quad2
bca718
 modules-names += tst-quadmod1 tst-quadmod2