From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PxaWF-0006re-H4 for garchives@archives.gentoo.org; Thu, 10 Mar 2011 07:42:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DEFA2E05A5; Thu, 10 Mar 2011 07:42:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 99275E05A5 for ; Thu, 10 Mar 2011 07:42:20 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C551C1B420F for ; Thu, 10 Mar 2011 07:42:19 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id CA6B120061; Thu, 10 Mar 2011 07:42:16 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo commit in src/patchsets/glibc/2.12.2: 6532_all_sparc64-tls-cross-test.patch README.history X-VCS-Repository: gentoo X-VCS-Files: 6532_all_sparc64-tls-cross-test.patch README.history X-VCS-Directories: src/patchsets/glibc/2.12.2 X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: <20110310074216.CA6B120061@flycatcher.gentoo.org> Date: Thu, 10 Mar 2011 07:42:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 443ce971055f5c914fb0ad6f6d4ca115 vapier 11/03/10 07:42:16 Modified: README.history Added: 6532_all_sparc64-tls-cross-test.patch Log: fix tls configure test for sparc64 targets Revision Changes Path 1.3 src/patchsets/glibc/2.12.2/README.history file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.= 12.2/README.history?rev=3D1.3&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.= 12.2/README.history?rev=3D1.3&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.= 12.2/README.history?r1=3D1.2&r2=3D1.3 Index: README.history =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo/src/patchsets/glibc/2.12.2/README.history,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- README.history 2 Mar 2011 02:33:26 -0000 1.2 +++ README.history 10 Mar 2011 07:42:16 -0000 1.3 @@ -1,3 +1,6 @@ +3 [pending] + + 6532_all_sparc64-tls-cross-test.patch + 2 01.03.2011 U 1505_hppa_glibc-2.11-hppa-nptl.patch =20 1.1 src/patchsets/glibc/2.12.2/6532_all_sparc64-tls-cros= s-test.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.= 12.2/6532_all_sparc64-tls-cross-test.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/glibc/2.= 12.2/6532_all_sparc64-tls-cross-test.patch?rev=3D1.1&content-type=3Dtext/= plain Index: 6532_all_sparc64-tls-cross-test.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >From 2aa10e7026b5e37ffb4a994e2d630cddaebed167 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 10 Mar 2011 02:21:57 -0500 Subject: [PATCH] sparc64: relax tls linking test The TLS test attempts to link an assembly program, but this implicitly pulls in start objects. This obviously causes problems when attempting to cross-compile glibc for the first time since glibc itself provides these start files. So tweak the test to skip these bits which are irrelevant to the test at hand. Signed-off-by: Mike Frysinger 2011-03-10 Mike Frysinger * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add $LDFLAGS and -nostdlib -nostartfiles to linking step. Change main to _start. * sysdeps/sparc/sparc64/elf/configure: Regenerate. --- sysdeps/sparc/sparc64/elf/configure | 6 +++--- sysdeps/sparc/sparc64/elf/configure.in | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sysdeps/sparc/sparc64/elf/configure b/sysdeps/sparc/sparc64/= elf/configure index 2c9e29e..f213438 100644 --- a/sysdeps/sparc/sparc64/elf/configure +++ b/sysdeps/sparc/sparc64/elf/configure @@ -16,8 +16,8 @@ foo: .word 1 .globl bar bar: .skip 4 .text - .globl main -main: sethi %tgd_hi22(foo), %l1 + .globl _start +_start: sethi %tgd_hi22(foo), %l1 add %l1, %tgd_lo10(foo), %l1 add %l7, %l1, %o0, %tgd_add(foo) call __tls_get_addr, %tgd_call(foo) @@ -35,7 +35,7 @@ main: sethi %tgd_hi22(foo), %l1 sethi %tle_hix22(foo), %l1 xor %l1, %tle_lox10(foo), %l1 EOF -if { ac_try=3D'${CC-cc} -o conftest.bin $CFLAGS conftest.s 1>&5' +if { ac_try=3D'${CC-cc} -o conftest.bin $CFLAGS $LDFLAGS conftest.s -nos= tdlib -nostartfiles 1>&5' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=3D$? diff --git a/sysdeps/sparc/sparc64/elf/configure.in b/sysdeps/sparc/sparc= 64/elf/configure.in index fd7e34e..4f75978 100644 --- a/sysdeps/sparc/sparc64/elf/configure.in +++ b/sysdeps/sparc/sparc64/elf/configure.in @@ -13,8 +13,8 @@ foo: .word 1 .globl bar bar: .skip 4 .text - .globl main -main: sethi %tgd_hi22(foo), %l1 + .globl _start +_start: sethi %tgd_hi22(foo), %l1 add %l1, %tgd_lo10(foo), %l1 add %l7, %l1, %o0, %tgd_add(foo) call __tls_get_addr, %tgd_call(foo) @@ -34,7 +34,7 @@ main: sethi %tgd_hi22(foo), %l1 EOF changequote([,])dnl dnl -if AC_TRY_COMMAND(${CC-cc} -o conftest.bin $CFLAGS conftest.s 1>&AS_MESS= AGE_LOG_FD); then +if AC_TRY_COMMAND(${CC-cc} -o conftest.bin $CFLAGS $LDFLAGS conftest.s -= nostdlib -nostartfiles 1>&AS_MESSAGE_LOG_FD); then libc_cv_sparc64_tls=3Dyes else libc_cv_sparc64_tls=3Dno --=20 1.7.4.1