arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

Blame SOURCES/glibc-rh1292018-0b.patch

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