From 7131c112a85b295484661d5d6fbc32aaa27e142a Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Mon, 20 Oct 2008 21:48:38 +0000 Subject: * glibc-2.8: remove cross_timezone, add powerpc fix git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@7880 f8d472c7-5700-0410-ac5a-87979cec3adf --- ..._FUTEX_OFFSET-Guard-sym-definition-with-i.patch | 33 ++ patches/glibc-2.8/generic/cross_timezone.diff | 489 --------------------- patches/glibc-2.8/generic/series | 3 +- 3 files changed, 35 insertions(+), 490 deletions(-) create mode 100644 patches/glibc-2.8/generic/0001--PRIVATE_FUTEX_OFFSET-Guard-sym-definition-with-i.patch delete mode 100644 patches/glibc-2.8/generic/cross_timezone.diff diff --git a/patches/glibc-2.8/generic/0001--PRIVATE_FUTEX_OFFSET-Guard-sym-definition-with-i.patch b/patches/glibc-2.8/generic/0001--PRIVATE_FUTEX_OFFSET-Guard-sym-definition-with-i.patch new file mode 100644 index 0000000..108fb46 --- /dev/null +++ b/patches/glibc-2.8/generic/0001--PRIVATE_FUTEX_OFFSET-Guard-sym-definition-with-i.patch @@ -0,0 +1,33 @@ +From 911474edb03aae49d007e9f238b3134aaa425fe5 Mon Sep 17 00:00:00 2001 +From: Ulrich Drepper +Date: Sat, 26 Jul 2008 16:24:40 +0000 +Subject: [PATCH] (PRIVATE_FUTEX_OFFSET): Guard sym definition with #ifndef __ASSUME_PRIVATE_FUTEX. + +The patch fixes this problem on powerpc with --enable-kernel >= 2.6.22 + +gawk -f ../scripts/gen-as-const.awk ../nptl/sysdeps/powerpc/tcb-offsets.sym \ + | powerpc-603e-linux-gnu-gcc -S -o /home/mkl/himalia-pengutronix/toolchain/OSELAS.Toolchain-trunk/platform-powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/build-target/glibc-2.8-crt-build/tcb-offsets.hT3 -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -mnew-mnemonics -Wstrict-prototypes -mlong-double-128 -I../include -I/home/mkl/himalia-pengutronix/toolchain/OSELAS.Toolchain-trunk/platform-powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/build-target/glibc-2.8-crt-build/csu -I/home/mkl/himalia-pengutronix/toolchain/OSELAS.Toolchain-trunk/platform-powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/build-target/glibc-2.8-crt-build -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu -I../sysdeps/powerpc/powerpc32/fpu -I../nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../nptl/sysdeps/unix/sysv/linux/powerpc -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/ieee754/ldbl-128ibm -I../sysdeps/ieee754/ldbl-opt -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/powerpc -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/fpu -I../nptl/sysdeps/powerpc -I../sysdeps/powerpc -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /ptx/work/himalia/mkl/toolchain/OSELAS.Toolchain-trunk/inst/opt/OSELAS.Toolchain-trunk/powerpc-603e-linux-gnu/gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/bin/../lib/gcc/powerpc-603e-linux-gnu/4.3.2/include -isystem /ptx/work/himalia/mkl/toolchain/OSELAS.Toolchain-trunk/inst/opt/OSELAS.Toolchain-trunk/powerpc-603e-linux-gnu/gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/bin/../lib/gcc/powerpc-603e-linux-gnu/4.3.2/include-fixed -isystem /home/mkl/himalia-pengutronix/toolchain/OSELAS.Toolchain-trunk/inst/opt/OSELAS.Toolchain-trunk/powerpc-603e-linux-gnu/gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/sysroot-powerpc-603e-linux-gnu/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \ + -MD -MP -MF /home/mkl/himalia-pengutronix/toolchain/OSELAS.Toolchain-trunk/platform-powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/build-target/glibc-2.8-crt-build/tcb-offsets.h.dT -MT '/home/mkl/himalia-pengutronix/toolchain/OSELAS.Toolchain-trunk/platform-powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/build-target/glibc-2.8-crt-build/tcb-offsets.h.d /home/mkl/himalia-pengutronix/toolchain/OSELAS.Toolchain-trunk/platform-powerpc-603e-linux-gnu-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/build-target/glibc-2.8-crt-build/tcb-offsets.h' +: In function 'dummy': +:13: error: 'struct ' has no member named 'private_futex' + +Signed-off-by: Marc Kleine-Budde + +--- + nptl/sysdeps/powerpc/tcb-offsets.sym | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/nptl/sysdeps/powerpc/tcb-offsets.sym b/nptl/sysdeps/powerpc/tcb-offsets.sym +index eda43dc..8ac133d 100644 +--- a/nptl/sysdeps/powerpc/tcb-offsets.sym ++++ b/nptl/sysdeps/powerpc/tcb-offsets.sym +@@ -15,4 +15,6 @@ MULTIPLE_THREADS_OFFSET thread_offsetof (header.multiple_threads) + PID thread_offsetof (pid) + TID thread_offsetof (tid) + POINTER_GUARD (offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t)) ++#ifndef __ASSUME_PRIVATE_FUTEX + PRIVATE_FUTEX_OFFSET thread_offsetof (header.private_futex) ++#endif +-- +1.5.6.5 + diff --git a/patches/glibc-2.8/generic/cross_timezone.diff b/patches/glibc-2.8/generic/cross_timezone.diff deleted file mode 100644 index d85d241..0000000 --- a/patches/glibc-2.8/generic/cross_timezone.diff +++ /dev/null @@ -1,489 +0,0 @@ -From: http://trac.cross-lfs.org/browser/branches/clfs-sysroot/patches/glibc-2.6.1-sysdep_cancel-1.patch - -Submitted By: Joe Ciccone -Date: 2006-11-26 -Initial Package Version: 2.5 -Origin: Joe Ciccone -Upstream Status: Unknown -Description: Adds native compile support to the build system then uses that - support to build zic-native, for installing timezone info, - rpcgen-native, for building librpcsvc.a, and localedef-native, - for creating the locale-archive. - ---- - Makeconfig | 13 +++++++++++++ - Makerules | 9 ++++++++- - Rules | 9 ++++++++- - iconv/Makefile | 4 ++++ - iconvdata/Makefile | 18 ++++++++++-------- - include-native/bits/libc-tsd.h | 3 +++ - include-native/config.h | 1 + - include-native/gnu/stubs.h | 1 + - include-native/intl/loadinfo.h | 4 ++++ - include-native/libintl.h | 11 +++++++++++ - include-native/symbol-hacks.h | 1 + - include-native/sys/types.h | 9 +++++++++ - include-native/tls.h | 11 +++++++++++ - locale/Makefile | 9 +++++++++ - localedata/Makefile | 5 +++++ - malloc/Makefile | 5 ----- - sunrpc/Makefile | 23 ++++++++++++++++++----- - timezone/Makefile | 14 ++++++++++---- - 18 files changed, 126 insertions(+), 24 deletions(-) - -Index: glibc-2.7/iconv/Makefile -=================================================================== ---- glibc-2.7.orig/iconv/Makefile -+++ glibc-2.7/iconv/Makefile -@@ -57,6 +57,9 @@ distribute = gconv_builtin.h gconv_int.h - iconvconfig.h - - others = iconv_prog iconvconfig -+ifneq ($(cross-compiling),no) -+others-native = iconvconfig-native -+endif - install-others-programs = $(inst_bindir)/iconv - install-sbin = iconvconfig - -@@ -79,6 +82,7 @@ $(inst_bindir)/iconv: $(objpfx)iconv_pro - - $(objpfx)iconv_prog: $(iconv_prog-modules:%=$(objpfx)%.o) - $(objpfx)iconvconfig: $(iconvconfig-modules:%=$(objpfx)%.o) -+$(objpfx)iconvconfig-native: $(iconvconfig-modules:%=$(objpfx)%-native.o) - - ifneq ($(cross-compiling),yes) - xtests: test-iconvconfig -Index: glibc-2.7/iconvdata/Makefile -=================================================================== ---- glibc-2.7.orig/iconvdata/Makefile -+++ glibc-2.7/iconvdata/Makefile -@@ -315,23 +315,25 @@ $(objpfx)iso8859-7jp.stmp: $(charmaps)/I - - headers: $(addprefix $(objpfx), $(generated-modules:=.h)) - -+ifeq ($(cross-compiling),no) -+iconvconfig-cmd = LC_ALL=C LANGUAGE=C \ -+ $(common-objpfx)elf/ld.so --library-path $(rpath-link) \ -+ $(common-objpfx)iconv/iconvconfig -+else -+iconvconfig-cmd = LC_ALL=C LANGUAGE=C \ -+ $(common-objpfx)iconv/iconvconfig-native -+endif -+ - $(addprefix $(inst_gconvdir)/, $(modules.so)): \ - $(inst_gconvdir)/%: $(objpfx)% $(+force) - $(do-install-program) - $(inst_gconvdir)/gconv-modules: gconv-modules $(+force) - $(do-install) --ifeq (no,$(cross-compiling)) - # Update the $(prefix)/lib/gconv/gconv-modules.cache file. This is necessary - # if this libc has more gconv modules than the previously installed one. - if test -f "$(inst_gconvdir)/gconv-modules.cache"; then \ -- LC_ALL=C LANGUAGE=C \ -- $(common-objpfx)elf/ld.so --library-path $(rpath-link) \ -- $(common-objpfx)iconv/iconvconfig \ -- $(addprefix --prefix=,$(install_root)); \ -+ $(iconvconfig-cmd) $(addprefix --prefix=,$(install_root)); \ - fi --else -- @echo '*@*@*@ You should recreate $(inst_gconvdir)/gconv-modules.cache' --endif - - endif # build-shared = yes - -Index: glibc-2.7/include-native/bits/libc-tsd.h -=================================================================== ---- /dev/null -+++ glibc-2.7/include-native/bits/libc-tsd.h -@@ -0,0 +1,3 @@ -+#ifndef __libc_tsd_define -+#define __libc_tsd_define(A,B) -+#endif -Index: glibc-2.7/include-native/config.h -=================================================================== ---- /dev/null -+++ glibc-2.7/include-native/config.h -@@ -0,0 +1 @@ -+/* Empty */ -Index: glibc-2.7/include-native/gnu/stubs.h -=================================================================== ---- /dev/null -+++ glibc-2.7/include-native/gnu/stubs.h -@@ -0,0 +1 @@ -+/* Empty */ -Index: glibc-2.7/include-native/intl/loadinfo.h -=================================================================== ---- /dev/null -+++ glibc-2.7/include-native/intl/loadinfo.h -@@ -0,0 +1,4 @@ -+#ifndef LOADINFO_H -+#define LOADINFO_H -+struct loaded_l10nfile; -+#endif -Index: glibc-2.7/include-native/libintl.h -=================================================================== ---- /dev/null -+++ glibc-2.7/include-native/libintl.h -@@ -0,0 +1,11 @@ -+#ifndef _ -+#define _(X) (X) -+#endif -+ -+#ifndef N_ -+#define N_(X) (X) -+#endif -+ -+#ifndef _libc_intl_domainname -+#define _libc_intl_domainname "libc" -+#endif -Index: glibc-2.7/include-native/symbol-hacks.h -=================================================================== ---- /dev/null -+++ glibc-2.7/include-native/symbol-hacks.h -@@ -0,0 +1 @@ -+/* Empty */ -Index: glibc-2.7/include-native/tls.h -=================================================================== ---- /dev/null -+++ glibc-2.7/include-native/tls.h -@@ -0,0 +1,11 @@ -+#ifndef _include_tls_h -+#define _include_tls_h 1 -+ -+#if USE_TLS && HAVE___THREAD \ -+ && (!defined NOT_IN_libc || defined IS_IN_libpthread) -+# define USE___THREAD 1 -+#else -+# define USE___THREAD 0 -+#endif -+ -+#endif -Index: glibc-2.7/locale/Makefile -=================================================================== ---- glibc-2.7.orig/locale/Makefile -+++ glibc-2.7/locale/Makefile -@@ -44,6 +44,9 @@ categories = ctype messages monetary num - aux = $(categories:%=lc-%) $(categories:%=C-%) SYS_libc C_name \ - xlocale localename global-locale coll-lookup - others = localedef locale -+ifneq ($(cross-compiling),no) -+others-native = localedef-native -+endif - #others-static = localedef locale - install-bin = localedef locale - extra-objs = $(localedef-modules:=.o) $(localedef-aux:=.o) \ -@@ -81,6 +84,12 @@ $(objpfx)localedef: $(localedef-aux:%=$( - $(objpfx)locale: $(locale-modules:%=$(objpfx)%.o) - $(objpfx)localedef $(objpfx)locale: $(lib-modules:%=$(objpfx)%.o) - -+ifneq ($(cross-compiling),no) -+$(objpfx)localedef-native: $(localedef-modules:%=$(objpfx)%-native.o) -+$(objpfx)localedef-native: $(localedef-aux:%=$(objpfx)%-native.o) -+$(objpfx)localedef-native: $(lib-modules:%=$(objpfx)%-native.o) -+endif -+ - C-translit.h: C-translit.h.in gen-translit.pl - $(PERL) gen-translit.pl < $< > $@.tmp - mv -f $@.tmp $@ -Index: glibc-2.7/localedata/Makefile -=================================================================== ---- glibc-2.7.orig/localedata/Makefile -+++ glibc-2.7/localedata/Makefile -@@ -206,8 +206,13 @@ include SUPPORTED - INSTALL-SUPPORTED-LOCALES=$(addprefix install-, $(SUPPORTED-LOCALES)) - - # Sometimes the whole collection of locale files should be installed. -+ifeq ($(cross-compiling),no) - LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \ - $(common-objpfx)elf/ld.so --library-path $(rpath-link) $(common-objpfx)locale/localedef -+else -+LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \ -+$(common-objpfx)locale/localedef-native -+endif - install-locales: $(INSTALL-SUPPORTED-LOCALES) - - install-locales-dir: -Index: glibc-2.7/Makeconfig -=================================================================== ---- glibc-2.7.orig/Makeconfig -+++ glibc-2.7/Makeconfig -@@ -445,6 +445,12 @@ ifndef +link-static - $(common-objpfx)libc% $(+postinit),$^) \ - $(link-extra-libs-static) $(link-libc-static) $(+postctor) $(+postinit) - endif -+# Command for linking programs against the host system. -+ifndef +link-native -++link-native = $(BUILD_CC) -g -o $@ $^ \ -+ $(LDFLAGS) $(LDFLAGS-$(@F)) \ -+ $(link-extra-libs) -+endif - # Command for statically linking bounded-pointer programs with the C library. - ifndef +link-bounded - +link-bounded = $(CC) -nostdlib -nostartfiles -static -fbounded-pointers -o $@ \ -@@ -658,6 +664,8 @@ endif # $(+cflags) == "" - $(+sysdep-includes) $(includes) \ - $(patsubst %/,-I%,$(..)) $(libio-include) -I. $(sysincludes) - -++includes-native = -I$(..)include-native -I$(objpfx) -I. -+ - # Since libio has several internal header files, we use a -I instead - # of many little headers in the include directory. - libio-include = -I$(..)libio -@@ -672,10 +680,15 @@ CPPFLAGS = $($(subdir)-CPPFLAGS) $(+incl - $(foreach lib,$(libof-$(basename $(@F))) \ - $(libof-$( -+ -+#ifndef __u_char_defined -+# define __u_char_defined -+#endif -+#ifndef __daddr_t_defined -+# define __daddr_t_defined -+#endif -+ diff --git a/patches/glibc-2.8/generic/series b/patches/glibc-2.8/generic/series index 3606ad4..ef326c2 100644 --- a/patches/glibc-2.8/generic/series +++ b/patches/glibc-2.8/generic/series @@ -5,7 +5,8 @@ configure_in-sane_readelf.diff configure-sane_readelf.diff glibc-2.5_stdlib_longlong.h -#cross_timezone.diff + +0001--PRIVATE_FUTEX_OFFSET-Guard-sym-definition-with-i.patch gentoo/0030_all_glibc-respect-env-CPPFLAGS.patch gentoo/0040_all_glibc-i586-chk.patch -- cgit v1.2.3