diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-11-29 12:29:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-11-29 12:29:16 +0000 |
commit | f505e40e90c6b62f4a97de4041cb3335c3a7a890 (patch) | |
tree | 18f0bc8e0a9ff384a572b04b32f17c125202f0ee | |
parent | 9fd1e95ee7269f283e9d460ed8c143031de7244c (diff) | |
download | aports-f505e40e90c6b62f4a97de4041cb3335c3a7a890.tar.bz2 aports-f505e40e90c6b62f4a97de4041cb3335c3a7a890.tar.xz |
main/libc0.9.32: update snapshot to 1011291225
-rw-r--r-- | main/libc0.9.32/0001-ntpl-fix-static-linking-by-not-leaking-SSP_ALL_CFLAG.patch | 200 | ||||
-rw-r--r-- | main/libc0.9.32/APKBUILD | 8 |
2 files changed, 3 insertions, 205 deletions
diff --git a/main/libc0.9.32/0001-ntpl-fix-static-linking-by-not-leaking-SSP_ALL_CFLAG.patch b/main/libc0.9.32/0001-ntpl-fix-static-linking-by-not-leaking-SSP_ALL_CFLAG.patch deleted file mode 100644 index 83e95e082..000000000 --- a/main/libc0.9.32/0001-ntpl-fix-static-linking-by-not-leaking-SSP_ALL_CFLAG.patch +++ /dev/null @@ -1,200 +0,0 @@ -From bbef1fa203ecb2ab02fa5bb25dc4ab9a708b7dcb Mon Sep 17 00:00:00 2001 -From: Natanael Copa <natanael.copa@gmail.com> -Date: Thu, 11 Nov 2010 07:32:55 +0000 -Subject: [PATCH] ntpl: fix static linking by not leaking SSP_ALL_CFLAGS - -The SSP_ALL_CFLAGS in nptl arch CFLAGS leaks out and forces things -like dl-support.c, brk.c, sbrk.c memcpy, etc to be built with --fstack-protector-all. This is bad when linking statically since -initializing TLS will call those functions before SSP is initialized. - -The libpthread itself will still be built with -fstack-protector-all -due to CFLAGS-nptl has SSP_ALL_CFLAGS in libpthread/nptl/Makefile.in - -Thanks to Timo Teras for helping with this. - -Signed-off-by: Natanael Copa <natanael.copa@gmail.com> ---- - libpthread/nptl/sysdeps/arm/Makefile.arch | 1 - - libpthread/nptl/sysdeps/generic/Makefile.in | 2 -- - libpthread/nptl/sysdeps/i386/Makefile.arch | 1 - - libpthread/nptl/sysdeps/mips/Makefile.arch | 1 - - libpthread/nptl/sysdeps/powerpc/Makefile.arch | 1 - - libpthread/nptl/sysdeps/sh/Makefile.arch | 1 - - libpthread/nptl/sysdeps/sparc/Makefile.arch | 1 - - .../nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch | 1 - - .../sysdeps/unix/sysv/linux/i386/Makefile.arch | 1 - - .../sysdeps/unix/sysv/linux/mips/Makefile.arch | 1 - - .../sysdeps/unix/sysv/linux/powerpc/Makefile.arch | 1 - - .../nptl/sysdeps/unix/sysv/linux/sh/Makefile.arch | 1 - - .../sysdeps/unix/sysv/linux/sparc/Makefile.arch | 1 - - .../sysdeps/unix/sysv/linux/x86_64/Makefile.arch | 1 - - libpthread/nptl/sysdeps/x86_64/Makefile.arch | 1 - - 15 files changed, 0 insertions(+), 16 deletions(-) - -diff --git a/libpthread/nptl/sysdeps/arm/Makefile.arch b/libpthread/nptl/sysdeps/arm/Makefile.arch -index b7a9295..a8bc1aa 100644 ---- a/libpthread/nptl/sysdeps/arm/Makefile.arch -+++ b/libpthread/nptl/sysdeps/arm/Makefile.arch -@@ -15,4 +15,3 @@ ASFLAGS-pthread_spin_lock.S = -DNOT_IN_libc -DIS_IN_libpthread - ASFLAGS-pthread_spin_trylock.S = -DNOT_IN_libc -DIS_IN_libpthread - ASFLAGS-aeabi_read_tp.S = -DNOT_IN_libc=1 - --CFLAGS-arm = $(SSP_ALL_CFLAGS) -diff --git a/libpthread/nptl/sysdeps/generic/Makefile.in b/libpthread/nptl/sysdeps/generic/Makefile.in -index 890fe05..eb656ee 100644 ---- a/libpthread/nptl/sysdeps/generic/Makefile.in -+++ b/libpthread/nptl/sysdeps/generic/Makefile.in -@@ -19,8 +19,6 @@ libpthread_generic_libc_a_OBJS = $(libpthread_generic_libc_a_COBJ) - libpthread_ld_tls_CSRC = dl-tls.c - libpthread_ld_tls_COBJ = $(patsubst %.c,$(libpthread_generic_OUT)/%.o,$(libpthread_ld_tls_CSRC)) - --CFLAGS-generic = $(SSP_ALL_CFLAGS) -- - objclean-y += CLEAN_libpthread/nptl/sysdeps/generic - - CLEAN_libpthread/nptl/sysdeps/generic: -diff --git a/libpthread/nptl/sysdeps/i386/Makefile.arch b/libpthread/nptl/sysdeps/i386/Makefile.arch -index 89962f7..9572303 100644 ---- a/libpthread/nptl/sysdeps/i386/Makefile.arch -+++ b/libpthread/nptl/sysdeps/i386/Makefile.arch -@@ -8,4 +8,3 @@ - CFLAGS-pthread_spin_lock.c += -D_GNU_SOURCE - CFLAGS-pthread_create.c += -mpreferred-stack-boundary=4 - --CFLAGS-i386 = $(SSP_ALL_CFLAGS) -diff --git a/libpthread/nptl/sysdeps/mips/Makefile.arch b/libpthread/nptl/sysdeps/mips/Makefile.arch -index 6085ec8..2762a2f 100644 ---- a/libpthread/nptl/sysdeps/mips/Makefile.arch -+++ b/libpthread/nptl/sysdeps/mips/Makefile.arch -@@ -15,4 +15,3 @@ ASFLAGS-nptl-sysdep.S = -DNOT_IN_libc -DIS_IN_libpthread \ - - libc_arch_a_CSRC = libc-tls.c - --CFLAGS-mips = $(SSP_ALL_CFLAGS) -diff --git a/libpthread/nptl/sysdeps/powerpc/Makefile.arch b/libpthread/nptl/sysdeps/powerpc/Makefile.arch -index edf3f4b..18ddc28 100644 ---- a/libpthread/nptl/sysdeps/powerpc/Makefile.arch -+++ b/libpthread/nptl/sysdeps/powerpc/Makefile.arch -@@ -5,4 +5,3 @@ - # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - # - --CFLAGS-powerpc = $(SSP_ALL_CFLAGS) -diff --git a/libpthread/nptl/sysdeps/sh/Makefile.arch b/libpthread/nptl/sysdeps/sh/Makefile.arch -index eb4db68..3cb58ec 100644 ---- a/libpthread/nptl/sysdeps/sh/Makefile.arch -+++ b/libpthread/nptl/sysdeps/sh/Makefile.arch -@@ -10,5 +10,4 @@ ASFLAGS-pthread_spin_trylock.S = -DNOT_IN_libc -DIS_IN_libpthread - - CFLAGS-pthread_spin_lock.c += -D_GNU_SOURCE - --CFLAGS-sh = $(SSP_ALL_CFLAGS) - -diff --git a/libpthread/nptl/sysdeps/sparc/Makefile.arch b/libpthread/nptl/sysdeps/sparc/Makefile.arch -index 4494935..52ac6db 100644 ---- a/libpthread/nptl/sysdeps/sparc/Makefile.arch -+++ b/libpthread/nptl/sysdeps/sparc/Makefile.arch -@@ -8,5 +8,4 @@ subdirs += libpthread/nptl/sysdeps/$(TARGET_ARCH)/$(TARGET_SUBARCH)/sparv9 - - CFLAGS-pthread_spin_lock.c += -D_GNU_SOURCE - --CFLAGS-sparc = $(SSP_ALL_CFLAGS) - -diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch -index 2385d8d..329d8a9 100644 ---- a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch -+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch -@@ -14,7 +14,6 @@ libc_linux_arch_CSRC = fork.c libc-lowlevellock.c - libc_linux_arch_SSRC = clone.S vfork.S - libc_linux_arch_SSRC-OMIT = waitpid.S - --CFLAGS += $(SSP_ALL_CFLAGS) - - CFLAGS-pthread_once.c = -DNOT_IN_libc -DIS_IN_libpthread - CFLAGS-pt-__syscall_rt_sigaction.c = -DNOT_IN_libc -DIS_IN_libpthread -diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch -index 1348f4d..9a34595 100644 ---- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch -+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch -@@ -12,7 +12,6 @@ libc_linux_arch_CSRC = fork.c - libc_linux_arch_SSRC = clone.S vfork.S - - ASFLAGS += -DUSE___THREAD --CFLAGS += $(SSP_ALL_CFLAGS) - - CFLAGS-pt-__syscall_error.c = -DNOT_IN_libc -DIS_IN_libpthread - ASFLAGS-pt-vfork.S = -DNOT_IN_libc -DIS_IN_libpthread -D_LIBC_REENTRANT -diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile.arch -index 2ff3095..84fe17e 100644 ---- a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile.arch -+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile.arch -@@ -12,7 +12,6 @@ libc_linux_arch_CSRC = fork.c - libc_linux_arch_SSRC = clone.S vfork.S - - ASFLAGS += -DUSE___THREAD --CFLAGS += $(SSP_ALL_CFLAGS) - - CFLAGS-OMIT-fork.c = -DNOT_IN_libc -DIS_IN_libpthread - ifeq ($(UCLIBC_HAS_STDIO_FUTEXES),y) -diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/powerpc/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/powerpc/Makefile.arch -index ee75cdb..8581aea 100644 ---- a/libpthread/nptl/sysdeps/unix/sysv/linux/powerpc/Makefile.arch -+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/powerpc/Makefile.arch -@@ -15,7 +15,6 @@ libc_linux_arch_SSRC = clone.S vfork.S - librt_linux_arch_CSRC = pt-__syscall_error.c - - ASFLAGS += -DUSE___THREAD --CFLAGS += $(SSP_ALL_CFLAGS) - - CFLAGS-pthread_once.c = -DNOT_IN_libc -DIS_IN_libpthread - CFLAGS-lowlevellock.c = -DNOT_IN_libc -DIS_IN_libpthread -diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/Makefile.arch -index 5ac6724..a8249e0 100644 ---- a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/Makefile.arch -+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/Makefile.arch -@@ -16,7 +16,6 @@ libc_linux_arch_CSRC = fork.c - libc_linux_arch_SSRC = libc-lowlevellock.S clone.S vfork.S - - ASFLAGS += -DUSE___THREAD --CFLAGS += $(SSP_ALL_CFLAGS) - - ASFLAGS-pt-vfork.S = -DNOT_IN_libc -DIS_IN_libpthread -D_LIBC_REENTRANT - ASFLAGS-pthread_once.S = -D_LIBC_REENTRANT -diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch -index d634894..88ca01a 100644 ---- a/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch -+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch -@@ -13,7 +13,6 @@ libc_linux_arch_CSRC = fork.c libc-lowlevellock.c - libc_linux_arch_SSRC = clone.S vfork.S - - ASFLAGS += -DUSE___THREAD --CFLAGS += $(SSP_ALL_CFLAGS) - - ASFLAGS-pt-vfork.S = -DNOT_IN_libc -DIS_IN_libpthread -D_LIBC_REENTRANT - CFLAGS-pthread_once.c = -DNOT_IN_libc -DIS_IN_libpthread -diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch -index 2ec3383..71df986 100644 ---- a/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch -+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch -@@ -19,7 +19,6 @@ libc_linux_arch_SSRC-OMIT = waitpid.S - librt_linux_arch_SSRC = librt-cancellation.S - - ASFLAGS += -DUSE___THREAD --CFLAGS += $(SSP_ALL_CFLAGS) - - CFLAGS-pt-__syscall_error.c = -DNOT_IN_libc -DIS_IN_libpthread - ASFLAGS-pt-vfork.S = -DNOT_IN_libc -DIS_IN_libpthread -D_LIBC_REENTRANT -diff --git a/libpthread/nptl/sysdeps/x86_64/Makefile.arch b/libpthread/nptl/sysdeps/x86_64/Makefile.arch -index 7a955ff..cf6f1c2 100644 ---- a/libpthread/nptl/sysdeps/x86_64/Makefile.arch -+++ b/libpthread/nptl/sysdeps/x86_64/Makefile.arch -@@ -7,5 +7,4 @@ - - CFLAGS-pthread_spin_lock.c += -D_GNU_SOURCE - --CFLAGS-x86_64 = $(SSP_ALL_CFLAGS) - --- -1.7.3.2 - diff --git a/main/libc0.9.32/APKBUILD b/main/libc0.9.32/APKBUILD index dc53b6b13..98f96f25d 100644 --- a/main/libc0.9.32/APKBUILD +++ b/main/libc0.9.32/APKBUILD @@ -1,9 +1,9 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> _abiver=0.9.32 pkgname=libc$_abiver -_gitver=1011011024 +_gitver=1011291225 pkgver=${_abiver}_alpha0_git$_gitver -pkgrel=3 +pkgrel=0 pkgdesc="C library for developing embedded Linux systems" url=http://uclibc.org license="LGPL-2" @@ -22,7 +22,6 @@ _snapfile="$pkgname-$pkgver.tar.bz2" source="http://build.alpinelinux.org:8010/distfiles/$_snapfile compat-stack-guard.patch 0001-create-DEVEL_PREFIX-MULTILIB_DIR-dir-rather-than-DEV.patch - 0001-ntpl-fix-static-linking-by-not-leaking-SSP_ALL_CFLAG.patch ldso-x86_64-support-protected-symbols.patch 1.patch 2.patch @@ -118,10 +117,9 @@ libthread_db() { mv "$pkgdir"/lib/libthread_db* "$subpkgdir"/lib/ } -md5sums="dad1117e11d0c709263e5b26a74db9ce libc0.9.32-0.9.32_alpha0_git1011011024.tar.bz2 +md5sums="66220e34b070d7f9fc666f88956f4ef3 libc0.9.32-0.9.32_alpha0_git1011291225.tar.bz2 4d408f72142ce55a0754948cc9cfe447 compat-stack-guard.patch 9dd8192227f54d6d3ccb49dc54137ff3 0001-create-DEVEL_PREFIX-MULTILIB_DIR-dir-rather-than-DEV.patch -337f4fa134307bbdac026d6ff97df5fc 0001-ntpl-fix-static-linking-by-not-leaking-SSP_ALL_CFLAG.patch 84a2786fb4c89bee56607dd09b538d7b ldso-x86_64-support-protected-symbols.patch 8f55efc31c41bf70d99006a7d2f7fe1e 1.patch 350a608e3d3b148af882f6e074225465 2.patch |