From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16060 invoked by alias); 11 May 2011 11:11:17 -0000 Received: (qmail 16049 invoked by uid 22791); 11 May 2011 11:11:15 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 May 2011 11:11:01 +0000 Received: (qmail 2347 invoked from network); 11 May 2011 11:11:00 -0000 Received: from unknown (HELO ?84.152.216.116?) (bernds@127.0.0.2) by mail.codesourcery.com with ESMTPA; 11 May 2011 11:11:00 -0000 Message-ID: <4DCA6E9F.3030409@codesourcery.com> Date: Wed, 11 May 2011 11:11:00 -0000 From: Bernd Schmidt User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110505 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 To: binutils@sources.redhat.com CC: Paul Brook , "Joseph S. Myers" Subject: Fix ld testcases on c6x Content-Type: multipart/mixed; boundary="------------060004000804070303010309" Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00143.txt.bz2 This is a multi-part message in MIME format. --------------060004000804070303010309 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 388 This corrects some ld testsuite failures which I failed to spot before checking in my C6X -mpic patch. OK? I'm also seeing Running /local/src/egcs/src/ld/testsuite/ld-tic6x/tic6x.exp ... FAIL: ld-tic6x/unwind-1 FAIL: ld-tic6x/unwind-2 FAIL: ld-tic6x/unwind-3 FAIL: ld-tic6x/unwind-4 ERROR: dump program unspecified in /local/src/egcs/src/ld/testsuite/ld-tic6x/unwind-6.d Paul? Bernd --------------060004000804070303010309 Content-Type: text/plain; name="mpic-ts.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mpic-ts.diff" Content-length: 2283 * ld-elf/frame.exp: Use -mpic -mpid=near assembler options for tic6x. * ld-elf/exclude.exp: Likewise. Index: ld/testsuite/ld-elf/frame.exp =================================================================== --- ld/testsuite/ld-elf/frame.exp (revision 316201) +++ ld/testsuite/ld-elf/frame.exp (working copy) @@ -44,14 +44,20 @@ if { [istarget "hppa64-*-*"] || [istarge return } +# This target requires extra as options when building code for shared +# libraries. +if { [istarget "tic6x-*-*"] } { + set as_opt "-mpic -mpid=near" +} + set test1 "read-only .eh_frame section" set test2 "read-only .gcc_except_table section" global as global ld -if { ![ld_assemble $as $srcdir/$subdir/tbss.s tmpdir/tbss.o ] - || ![ld_assemble $as $srcdir/$subdir/frame.s tmpdir/frame.o] } { +if { ![ld_assemble $as "$as_opt $srcdir/$subdir/tbss.s" tmpdir/tbss.o ] + || ![ld_assemble $as "$as_opt $srcdir/$subdir/frame.s" tmpdir/frame.o] } { unresolved "$test1" return } @@ -66,7 +72,7 @@ if { [ld_simple_link $ld tmpdir/frame.so } } -if ![ld_assemble $as $srcdir/$subdir/table.s tmpdir/table.o ] { +if ![ld_assemble $as "$as_opt $srcdir/$subdir/table.s" tmpdir/table.o ] { unresolved "$test2" return } Index: ld/testsuite/ld-elf/exclude.exp =================================================================== --- ld/testsuite/ld-elf/exclude.exp (revision 316201) +++ ld/testsuite/ld-elf/exclude.exp (working copy) @@ -31,6 +31,12 @@ if { [istarget "mcore-*-*"] } { return } +# This target requires extra as options when building code for shared +# libraries. +if { [istarget "tic6x-*-*"] } { + set as_opt "-mpic -mpid=near" +} + global ar global as global ld @@ -47,8 +53,8 @@ set test7 "ld exclude symbols from archi set test8 "ld exclude symbols from archive - --exclude-libs foo,libexclude.a" set test9 "ld don't exclude symbols from archive - --exclude-libs foo:bar" -if { ![ld_assemble $as $srcdir/$subdir/exclude1.s tmpdir/exclude1.o ] - || ![ld_assemble $as $srcdir/$subdir/exclude2.s tmpdir/exclude2.o] } { +if { ![ld_assemble $as "$as_opt $srcdir/$subdir/exclude1.s" tmpdir/exclude1.o ] + || ![ld_assemble $as "$as_opt $srcdir/$subdir/exclude2.s" tmpdir/exclude2.o] } { unresolved $test1 return } --------------060004000804070303010309--