]> sourceware.org Git - glibc.git/commitdiff
Do not override objects in libc.a in other static libraries [BZ #20452]
authorFlorian Weimer <fweimer@redhat.com>
Wed, 17 Aug 2016 12:57:00 +0000 (14:57 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 17 Aug 2016 12:57:01 +0000 (14:57 +0200)
With this change, we no longer add sysdep.o and similar objects which
are present in libc.a to other static libraries.

14 files changed:
ChangeLog
sysdeps/ia64/nptl/Makefile
sysdeps/mips/Makefile
sysdeps/mips/nptl/Makefile
sysdeps/s390/nptl/Makefile
sysdeps/unix/alpha/Makefile
sysdeps/unix/sysv/linux/alpha/Makefile
sysdeps/unix/sysv/linux/i386/Makefile
sysdeps/unix/sysv/linux/ia64/Makefile
sysdeps/unix/sysv/linux/microblaze/Makefile
sysdeps/unix/sysv/linux/powerpc/Makefile
sysdeps/unix/sysv/linux/s390/Makefile
sysdeps/unix/sysv/linux/sparc/Makefile
sysdeps/unix/sysv/linux/tile/Makefile

index ae29267c1eae41bac7e7e6fbf61aa21dd6fa51da..92f7d869302be71ae317ec04cc03a394371a0ca5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,37 @@
+2016-08-17  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #20452]
+       Avoid additional copies of objects in libc.a in static libraries.
+       * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
+       Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
+       * sysdeps/mips/Makefile (librt-shared-only-routines): Add
+       rt-sysdep.
+       * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
+       Add nptl-sysdep.
+       * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
+       Add ptw-sysdep.
+       * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
+       rt-sysdep.
+       * sysdeps/unix/sysv/linux/alpha/Makefile
+       (libpthread-shared-only-routines): Add ptw-sysdep,
+       ptw-sigprocmask, ptw-rt_sigaction.
+       * sysdeps/unix/sysv/linux/ia64/Makefile
+       (librt-shared-only-routines): Add rt-sysdep.
+       * sysdeps/unix/sysv/linux/i386/Makefile
+       (libpthread-shared-only-routines): Add libc-do-syscall.
+       * sysdeps/unix/sysv/linux/microblaze/Makefile
+       (libpthread-shared-only-routines): Add sysdep.
+       * sysdeps/unix/sysv/linux/powerpc/Makefile
+       (librt-shared-only-routines): Add rt-sysdep.
+       (libpthread-shared-only-routines): Add sysdep.
+       * sysdeps/unix/sysv/linux/s390/Makefile
+       (librt-shared-only-routines): Add rt-sysdep.
+       * sysdeps/unix/sysv/linux/sparc/Makefile
+       (librt-shared-only-routines): Add rt-sysdep.
+       (libpthread-shared-only-routines): Add sysdep.
+       * sysdeps/unix/sysv/linux/tile/Makefile
+       (libpthread-shared-only-routines): Likewise.
+
 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
 
        * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
index 48f1327446a04a8098e8d84dcf10599ea20a8941..1e6be8eea86ae3dba1c0ecab645b0328fc70184a 100644 (file)
@@ -21,4 +21,5 @@ endif
 
 ifeq ($(subdir),nptl)
 libpthread-routines += ptw-sysdep ptw-sigblock ptw-sigprocmask
+libpthread-shared-only-routines += ptw-sysdep ptw-sigblock ptw-sigprocmask
 endif
index 3d3552322b335647d59d02ac0cdc5a8c2170a720..7c1d77941ec154b460af9b2581cec7e82141acdf 100644 (file)
@@ -9,6 +9,7 @@ endif
 
 ifeq ($(subdir),rt)
 librt-sysdep_routines += rt-sysdep
+librt-shared-only-routines += rt-sysdep
 endif
 
 ifeq ($(subdir),debug)
index 117744ffe2ddba63c1ed7c767da25ba8a080706c..dda154d8423867092dc00328ca8eaef030aabf8f 100644 (file)
@@ -21,4 +21,5 @@ endif
 
 ifeq ($(subdir),nptl)
 libpthread-sysdep_routines += nptl-sysdep
+libpthread-shared-only-routines += nptl-sysdep
 endif
index 5734b983b0b5ba5ddb13686964afc263d2a96e8f..3a391c82179b9f5a58cedf08214b8696aee8689b 100644 (file)
@@ -21,4 +21,5 @@ endif
 
 ifeq ($(subdir),nptl)
 libpthread-routines += ptw-sysdep
+libpthread-shared-only-routines += ptw-sysdep
 endif
index 441aa02a83800f8b1288e58afd68a4beb1bb12d7..0660847f15aab061b2d4b2edcfe9e4ac6225ec1c 100644 (file)
@@ -1,3 +1,4 @@
 ifeq ($(subdir),rt)
 librt-sysdep_routines += rt-sysdep
+librt-shared-only-routines += rt-sysdep
 endif
index c089545e9b84ee65d50a6206741205788ea616cb..3b523b70cfadb003584dbd5fad6548d098ac4863 100644 (file)
@@ -40,4 +40,5 @@ endif   # math
 ifeq ($(subdir),nptl)
 # pull in __syscall_error routine, __sigprocmask, __syscall_rt_sigaction
 libpthread-routines += ptw-sysdep ptw-sigprocmask ptw-rt_sigaction
+libpthread-shared-only-routines += ptw-sysdep ptw-sigprocmask ptw-rt_sigaction
 endif
index b015ff7c760c189e14027e9f0aa757195427cfc2..6073a9fe04f0b51009b190876d4b60e14e74ee15 100644 (file)
@@ -31,6 +31,7 @@ endif
 # libpthread uses six-argument inline syscalls.
 ifeq ($(subdir),nptl)
 libpthread-sysdep_routines += libc-do-syscall
+libpthread-shared-only-routines += libc-do-syscall
 endif
 
 ifeq ($(subdir),resource)
index 1de62c528ae28dee817295efa8cb0de1b4b0d2e3..4d6766db5e73dde5f2d6a5fb3d933b9a0975d6b6 100644 (file)
@@ -19,6 +19,7 @@ endif
 
 ifeq ($(subdir),rt)
 librt-routines += rt-sysdep
+librt-shared-only-routines += rt-sysdep
 endif
 
 ifeq ($(subdir),nptl)
index 44a838fa110d2a65ced3bc87188ac9d1fe18efe4..d178bc6f34666782e48c96df97750644d3026c02 100644 (file)
@@ -5,4 +5,5 @@ endif
 ifeq ($(subdir),nptl)
 # pull in __syscall_error routine
 libpthread-routines += sysdep
-endif
\ No newline at end of file
+libpthread-shared-only-routines += sysdep
+endif
index c89ed9ec7dfc222e34a525c7c5d0ba62e155369d..2cfb46eca3c2dd7f3a394d5063c23c7a0e4e495e 100644 (file)
@@ -8,6 +8,7 @@ abi-64-v2-condition := __WORDSIZE == 64 && _CALL_ELF == 2
 
 ifeq ($(subdir),rt)
 librt-routines += rt-sysdep
+librt-shared-only-routines += rt-sysdep
 endif
 
 ifeq ($(subdir),stdlib)
@@ -34,4 +35,5 @@ ifeq ($(subdir),nptl)
 libpthread-routines += sysdep
 libpthread-sysdep_routines += elision-lock elision-unlock elision-timed \
                              elision-trylock
+libpthread-shared-only-routines += sysdep
 endif
index 497ffd566cbdb2a3949d03c5c8ea05161bfee1fb..f8ed013e9e2bcf6a4d6042fc59c4297ad64a9e92 100644 (file)
@@ -6,6 +6,7 @@ abi-64-condition := __WORDSIZE == 64
 
 ifeq ($(subdir),rt)
 librt-routines += rt-sysdep
+librt-shared-only-routines += rt-sysdep
 endif
 
 ifeq ($(subdir),stdlib)
index e67aecf8f0bc472a5e75213b94340dc20eea8f44..a67d199eb5d7705921691dd88f4ca7ee31aa6fdd 100644 (file)
@@ -6,6 +6,7 @@ abi-64-condition := __WORDSIZE == 64
 
 ifeq ($(subdir),rt)
 librt-routines += rt-sysdep
+librt-shared-only-routines += rt-sysdep
 endif
 
 ifeq ($(subdir),sysvipc)
@@ -15,4 +16,5 @@ endif
 ifeq ($(subdir),nptl)
 # pull in __syscall_error routine
 libpthread-routines += sysdep
+libpthread-shared-only-routines += sysdep
 endif
index 1c1cfff2800e55d11cfdfc4d884a39ee565f00fb..43acea363350931f7a5cad2ed101861e06ff0078 100644 (file)
@@ -25,4 +25,5 @@ endif
 ifeq ($(subdir),nptl)
 # pull in __syscall_error routine
 libpthread-routines += sysdep
+libpthread-shared-only-routines += sysdep
 endif
This page took 0.184027 seconds and 5 git commands to generate.