public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Fix ld testcases on c6x
@ 2011-05-11 11:11 Bernd Schmidt
  2011-05-11 11:20 ` Joseph S. Myers
  2011-05-11 11:56 ` Alan Modra
  0 siblings, 2 replies; 4+ messages in thread
From: Bernd Schmidt @ 2011-05-11 11:11 UTC (permalink / raw)
  To: binutils; +Cc: Paul Brook, Joseph S. Myers

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

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

[-- Attachment #2: mpic-ts.diff --]
[-- Type: text/plain, Size: 2283 bytes --]

	* 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
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-11 12:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-11 11:11 Fix ld testcases on c6x Bernd Schmidt
2011-05-11 11:20 ` Joseph S. Myers
2011-05-11 11:56 ` Alan Modra
2011-05-11 12:31   ` Bernd Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).