aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-09-09 12:13:42 +0000
committerAlan Modra <amodra@gmail.com>2009-09-09 12:13:42 +0000
commit53b0eb27a9f231167f09e862695004b89c3d3c1a (patch)
treeb6c3efc01e5ff5a0a89c41c1c6825a4a84d99361 /ld/testsuite/ld-elf
parent596d6d9145d7b285b1bd1afde953bb49d3cdbeff (diff)
downloadgdb-53b0eb27a9f231167f09e862695004b89c3d3c1a.zip
gdb-53b0eb27a9f231167f09e862695004b89c3d3c1a.tar.gz
gdb-53b0eb27a9f231167f09e862695004b89c3d3c1a.tar.bz2
* ld-elf/sec64k.exp: For frv-linux use "aw" sections.
* ld-elf/seg.d: Cater for GNU_STACK segment. * ld-elf/symbol1ref.s: Use data section. * ld-elf/symbol2ref.s: Likewise. * ld-scripts/empty-address-1.d: Don't run on frv-linux. * ld-scripts/empty-address-2a.d: Likewise. * ld-scripts/empty-address-2b.d: Likewise. * ld-scripts/empty-aligned.d: Likewise. * ld-elf/extract-symbol-1sym.d: Tolerate extra target supplied syms. * ld-scripts/sort_b_a-1.d: Likewise. * ld-scripts/sort_b_a.d: Likewise. * ld-scripts/sort_b_a_a-1.d: Likewise. * ld-scripts/sort_b_a_a-2.d: Likewise. * ld-scripts/sort_b_a_a-3.d: Likewise. * ld-scripts/sort_b_a_n-1.d: Likewise. * ld-scripts/sort_b_a_n-2.d: Likewise. * ld-scripts/sort_b_a_n-3.d: Likewise. * ld-scripts/sort_b_n-1.d: Likewise. * ld-scripts/sort_b_n.d: Likewise. * ld-scripts/sort_b_n_a-1.d: Likewise. * ld-scripts/sort_b_n_a-2.d: Likewise. * ld-scripts/sort_b_n_a-3.d: Likewise. * ld-scripts/sort_b_n_n-1.d: Likewise. * ld-scripts/sort_b_n_n-2.d: Likewise. * ld-scripts/sort_b_n_n-3.d: Likewise. * ld-scripts/sort_no-1.d: Likewise. * ld-scripts/sort_no-2.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/extract-symbol-1sym.d6
-rw-r--r--ld/testsuite/ld-elf/sec64k.exp6
-rw-r--r--ld/testsuite/ld-elf/seg.d4
-rw-r--r--ld/testsuite/ld-elf/symbol1ref.s2
-rw-r--r--ld/testsuite/ld-elf/symbol2ref.s2
5 files changed, 16 insertions, 4 deletions
diff --git a/ld/testsuite/ld-elf/extract-symbol-1sym.d b/ld/testsuite/ld-elf/extract-symbol-1sym.d
index f372932..4069191 100644
--- a/ld/testsuite/ld-elf/extract-symbol-1sym.d
+++ b/ld/testsuite/ld-elf/extract-symbol-1sym.d
@@ -4,8 +4,14 @@
#objcopy_linked_file: --extract-symbol
#nm: -n
#xfail: "hppa*-*-*"
+#...
0*00010010 T B
+#...
0*00020123 T C
+#...
0*00030000 A _entry
+#...
0*00040000 A linker_symbol
+#...
0*12345678 A D
+#pass \ No newline at end of file
diff --git a/ld/testsuite/ld-elf/sec64k.exp b/ld/testsuite/ld-elf/sec64k.exp
index bab47c3..285e83a 100644
--- a/ld/testsuite/ld-elf/sec64k.exp
+++ b/ld/testsuite/ld-elf/sec64k.exp
@@ -70,7 +70,11 @@ for { set i 0 } { $i < $max_sec / $secs_per_file } { incr i } {
# They should get separate section entries even without -r.
puts $ofd " .altmacro"
puts $ofd " .macro sec secn, secp"
- puts $ofd " .section .foo.\\secn,\"ax\""
+ if {![istarget "frv-*-*linux*"]} then {
+ puts $ofd " .section .foo.\\secn,\"ax\""
+ } else {
+ puts $ofd " .section .foo.\\secn,\"aw\""
+ }
puts $ofd " .global foo_\\secn"
puts $ofd "foo_\\secn:"
puts $ofd " .dc.a foo_\\secp"
diff --git a/ld/testsuite/ld-elf/seg.d b/ld/testsuite/ld-elf/seg.d
index c858c13..d9436ae 100644
--- a/ld/testsuite/ld-elf/seg.d
+++ b/ld/testsuite/ld-elf/seg.d
@@ -10,10 +10,12 @@ Program Headers:
#...
LOAD .*
LOAD 0x0*001000 0xf*fffff000 0xf*fffff000 0x0*1000 0x0*1000 .*
-
+# FRV adds a PT_GNU_STACK header
+#...
Section to Segment mapping:
Segment Sections...
00 .*
# On MIPS, the first segment is for .reginfo.
#...
0. reset boot
+#pass
diff --git a/ld/testsuite/ld-elf/symbol1ref.s b/ld/testsuite/ld-elf/symbol1ref.s
index 15725cb..99df499 100644
--- a/ld/testsuite/ld-elf/symbol1ref.s
+++ b/ld/testsuite/ld-elf/symbol1ref.s
@@ -1,3 +1,3 @@
- .text
+ .data
.dc.a symbol1
diff --git a/ld/testsuite/ld-elf/symbol2ref.s b/ld/testsuite/ld-elf/symbol2ref.s
index d2710f9..0a1a9eb 100644
--- a/ld/testsuite/ld-elf/symbol2ref.s
+++ b/ld/testsuite/ld-elf/symbol2ref.s
@@ -1,3 +1,3 @@
- .text
+ .data
.dc.a Foo