projects
/
external
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e0e3383
)
Even more hppa testsuite patches.
author
Alan Modra
<amodra@gmail.com>
Mon, 10 Jul 2000 17:02:16 +0000
(17:02 +0000)
committer
Alan Modra
<amodra@gmail.com>
Mon, 10 Jul 2000 17:02:16 +0000
(17:02 +0000)
ld/testsuite/ChangeLog
patch
|
blob
|
history
ld/testsuite/ld-scripts/crossref.exp
patch
|
blob
|
history
ld/testsuite/ld-scripts/weak.exp
patch
|
blob
|
history
ld/testsuite/ld-selective/selective.exp
patch
|
blob
|
history
ld/testsuite/ld-srec/srec.exp
patch
|
blob
|
history
diff --git
a/ld/testsuite/ChangeLog
b/ld/testsuite/ChangeLog
index
a3beb9a
..
894cdeb
100644
(file)
--- a/
ld/testsuite/ChangeLog
+++ b/
ld/testsuite/ChangeLog
@@
-1,3
+1,11
@@
+2000-07-10 Alan Modra <alan@linuxcare.com.au>
+
+ * ld-srec/srec.exp: xfail hppa.
+
+ * ld-scripts/weak.exp: Define $global$ for hppa.
+
+ * ld-scripts/crossref.exp: Fix string quoting.
+
2000-06-05 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Redirect the linker output
2000-06-05 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Redirect the linker output
diff --git
a/ld/testsuite/ld-scripts/crossref.exp
b/ld/testsuite/ld-scripts/crossref.exp
index
fee9759
..
d5bcc49
100644
(file)
--- a/
ld/testsuite/ld-scripts/crossref.exp
+++ b/
ld/testsuite/ld-scripts/crossref.exp
@@
-28,7
+28,7
@@
if [istarget a29k*-*-*] {
# hppa-elf needs a definition for $global$.
if [istarget hppa*-*-*] {
# hppa-elf needs a definition for $global$.
if [istarget hppa*-*-*] {
- set flags "$flags --defsym
'\$global\$'
=0"
+ set flags "$flags --defsym
\\\$global\\\$
=0"
}
verbose -log "$ld $flags -o tmpdir/cross1 -T $srcdir/$subdir/cross1.t tmpdir/cross1.o tmpdir/cross2.o"
}
verbose -log "$ld $flags -o tmpdir/cross1 -T $srcdir/$subdir/cross1.t tmpdir/cross1.o tmpdir/cross2.o"
diff --git
a/ld/testsuite/ld-scripts/weak.exp
b/ld/testsuite/ld-scripts/weak.exp
index
e965967
..
47651c0
100644
(file)
--- a/
ld/testsuite/ld-scripts/weak.exp
+++ b/
ld/testsuite/ld-scripts/weak.exp
@@
-35,7
+35,13
@@
set weak_regexp_big \
set weak_regexp_little \
".*Contents of section .text:.*1000 08100000 0c200000 12121212 34343434.*Contents of section .data:.*2000 08100000 0c200000 56565656 78787878.*"
set weak_regexp_little \
".*Contents of section .text:.*1000 08100000 0c200000 12121212 34343434.*Contents of section .data:.*2000 08100000 0c200000 56565656 78787878.*"
-if {! [ld_simple_link $ld tmpdir/weak "-T $srcdir/$subdir/weak.t tmpdir/weak1.o tmpdir/weak2.o"] } then {
+# hppa-elf needs a definition for $global$.
+set flags ""
+if [istarget hppa*-*-*] {
+ set flags "--defsym \\\$global\\\$=0"
+}
+
+if {! [ld_simple_link $ld tmpdir/weak "$flags -T $srcdir/$subdir/weak.t tmpdir/weak1.o tmpdir/weak2.o"] } then {
fail $testname
} else {
if {[which $objdump] == 0} then {
fail $testname
} else {
if {[which $objdump] == 0} then {
diff --git
a/ld/testsuite/ld-selective/selective.exp
b/ld/testsuite/ld-selective/selective.exp
index
20b3a12
..
75b5586
100644
(file)
--- a/
ld/testsuite/ld-selective/selective.exp
+++ b/
ld/testsuite/ld-selective/selective.exp
@@
-46,6
+46,8
@@
if { [which $CXX] == 0 } {
return
}
return
}
+setup_xfail "hppa*-*-*"
+
if { ![ld_compile "$CC $cflags" $srcdir/$subdir/1.c tmpdir/1.o]} {
unresolved $test1
return
if { ![ld_compile "$CC $cflags" $srcdir/$subdir/1.c tmpdir/1.o]} {
unresolved $test1
return
@@
-73,6
+75,8
@@
if ![ld_simple_link $ld tmpdir/1.x "$ldflags tmpdir/1.o"] {
}
}
}
}
+setup_xfail "hppa*-*-*"
+
if { ![ld_compile "$CC $cflags" $srcdir/$subdir/2.c tmpdir/2.o]} {
unresolved $test2
return
if { ![ld_compile "$CC $cflags" $srcdir/$subdir/2.c tmpdir/2.o]} {
unresolved $test2
return
diff --git
a/ld/testsuite/ld-srec/srec.exp
b/ld/testsuite/ld-srec/srec.exp
index
ca38a00
..
331ff78
100644
(file)
--- a/
ld/testsuite/ld-srec/srec.exp
+++ b/
ld/testsuite/ld-srec/srec.exp
@@
-344,6
+344,9
@@
setup_xfail "v850*-*-elf"
setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
setup_xfail "alpha*-*-netbsd*"
setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
setup_xfail "alpha*-*-netbsd*"
+# The S-record linker hasn't any hope of coping with HPPA relocs.
+setup_xfail "hppa*-*-*"
+
# The S-record linker doesn't support the special PE headers - the PE
# emulation tries to write pe-specific information to the PE headers
# in the output bfd, but it's not a PE bfd (it's an srec bfd)
# The S-record linker doesn't support the special PE headers - the PE
# emulation tries to write pe-specific information to the PE headers
# in the output bfd, but it's not a PE bfd (it's an srec bfd)
@@
-376,6
+379,7
@@
setup_xfail "powerpc*-*-eabi*"
setup_xfail "v850*-*-elf"
setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
setup_xfail "alpha*-*-netbsd*"
setup_xfail "v850*-*-elf"
setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
setup_xfail "alpha*-*-netbsd*"
+setup_xfail "hppa*-*-*"
setup_xfail "*-*-cygwin*" "*-*-mingw*" "*-*-pe*" "*-*-winnt*"
run_srec_test $test2 "tmpdir/sr3.o"
setup_xfail "*-*-cygwin*" "*-*-mingw*" "*-*-pe*" "*-*-winnt*"
run_srec_test $test2 "tmpdir/sr3.o"