]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ld-elf/sec64k.exp: For frv-linux use "aw" sections.
authorAlan Modra <amodra@gmail.com>
Wed, 9 Sep 2009 12:13:42 +0000 (12:13 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 9 Sep 2009 12:13:42 +0000 (12:13 +0000)
* 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.

28 files changed:
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/extract-symbol-1sym.d
ld/testsuite/ld-elf/sec64k.exp
ld/testsuite/ld-elf/seg.d
ld/testsuite/ld-elf/symbol1ref.s
ld/testsuite/ld-elf/symbol2ref.s
ld/testsuite/ld-scripts/empty-address-1.d
ld/testsuite/ld-scripts/empty-address-2a.d
ld/testsuite/ld-scripts/empty-address-2b.d
ld/testsuite/ld-scripts/empty-aligned.d
ld/testsuite/ld-scripts/sort_b_a-1.d
ld/testsuite/ld-scripts/sort_b_a.d
ld/testsuite/ld-scripts/sort_b_a_a-1.d
ld/testsuite/ld-scripts/sort_b_a_a-2.d
ld/testsuite/ld-scripts/sort_b_a_a-3.d
ld/testsuite/ld-scripts/sort_b_a_n-1.d
ld/testsuite/ld-scripts/sort_b_a_n-2.d
ld/testsuite/ld-scripts/sort_b_a_n-3.d
ld/testsuite/ld-scripts/sort_b_n-1.d
ld/testsuite/ld-scripts/sort_b_n.d
ld/testsuite/ld-scripts/sort_b_n_a-1.d
ld/testsuite/ld-scripts/sort_b_n_a-2.d
ld/testsuite/ld-scripts/sort_b_n_a-3.d
ld/testsuite/ld-scripts/sort_b_n_n-1.d
ld/testsuite/ld-scripts/sort_b_n_n-2.d
ld/testsuite/ld-scripts/sort_b_n_n-3.d
ld/testsuite/ld-scripts/sort_no-1.d
ld/testsuite/ld-scripts/sort_no-2.d

index 4aad9dc1d97f6c4b223e13ded20467a865f0ac66..e11aa76c5979a09b1062151ba8a9f83d07add74a 100644 (file)
@@ -1,3 +1,33 @@
+2009-09-09  Alan Modra  <amodra@bigpond.net.au>
+
+       * 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.
+
 2009-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
 
         * ld-elf/merge.d: xfail cr16-*-*.
index f372932973292aaf93120cd15edf62adaffdca20..4069191f700dd8b84e02dcf770a2e2ef789d6e2c 100644 (file)
@@ -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
index bab47c352d759da5c7e30db3ce86e8b2040d5f8d..285e83af5bab276510d32b25eb74c13e2eceb942 100644 (file)
@@ -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"
index c858c134072070f5a0b3df21da88029c1a1374bd..d9436aeb776d216805a2feef5fb903fbcbe1fded 100644 (file)
@@ -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
index 15725cb1da9f5e2ff81ff95cb08c222284b80511..99df49944c4f4745179e1e194258523f9cbcac8e 100644 (file)
@@ -1,3 +1,3 @@
-       .text
+       .data
        .dc.a symbol1
 
index d2710f9c9a8007b3a800e02fe56e31a9c1a1e7f0..0a1a9eb7987d96efde7a779dcfa1eada8d2dba1c 100644 (file)
@@ -1,3 +1,3 @@
-       .text
+       .data
        .dc.a Foo
 
index 99fac1e58b59151022fc0ed94413177532a2d802..29301ea8eafa6a4d45c6ceb8be7c90051d8dfa62 100644 (file)
@@ -1,5 +1,6 @@
 #ld: -T empty-address-1.t
 #nm: -n
+#notarget: frv-*-*linux*
 #...
 0+0 T _start
 #...
index d831d5ffd1abfc5dd8e2afdab1e5f7df56fe23f7..15fc65cc08969e27cb28cf25fa9f605379bd0e27 100644 (file)
@@ -1,6 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2a.t
 #nm: -n
+#notarget: frv-*-*linux*
 #...
 0+0 T _start
 #...
index 514fd68e2609051cbab705bfc259054fa6dd62e0..29b806947e616af4a54fb3f82ad5d5171bb14f51 100644 (file)
@@ -1,6 +1,7 @@
 #source: empty-address-2.s
 #ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2b.t
 #nm: -n
+#notarget: frv-*-*linux*
 #...
 0+0 T _start
 #...
index 4b7b84b901408589cbf405c6547f3d5ded47829a..283ef649366d3dc938d37708ca84d3d01e63cfe1 100644 (file)
@@ -2,6 +2,7 @@
 #ld: -T empty-aligned.t
 #readelf: -l --wide
 #xfail: "hppa64-*-*"
+#notarget: frv-*-*linux*
 
 #...
 Program Headers:
index eaa917de570ab385dd6cfec0a11a811ee2f5c4d8..325193c3d4372d5fd2db68c2011c1609db4e2277 100644 (file)
@@ -3,7 +3,12 @@
 #name: --sort-section alignment
 #nm: -n
 
+#...
 0[0-9a-f]* t text3
+#...
 0[0-9a-f]* t text1
+#...
 0[0-9a-f]* t text
+#...
 0[0-9a-f]* t text2
+#pass
index 78fe1f101583fd3dc8795074b8336e8ac835da49..0f558089c89d1176da8dd54990332c2ec400fce5 100644 (file)
@@ -3,7 +3,12 @@
 #name: SORT_BY_ALIGNMENT
 #nm: -n
 
+#...
 0[0-9a-f]* t text3
+#...
 0[0-9a-f]* t text1
+#...
 0[0-9a-f]* t text
+#...
 0[0-9a-f]* t text2
+#pass
index 4f70646c1282a82e229862eaf8d29074fb0df8a6..930f7480d2a34f1489d412e75745f2880d7caccb 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_ALIGNMENT(SORT_BY_ALIGNMENT())
 #nm: -n
 
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text3a
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#pass
index 65919a448a30fd397bf063364a459dee893218ee..3e7d1588aa6fb87dcd3c428fda792f48cdd5c3bf 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_ALIGNMENT(SORT_BY_ALIGNMENT()) --sort-section alignment
 #nm: -n
 
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text3a
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#pass
index 21b7732cfcb045b4785e7aab498d775c559d5ed4..b1b060093c1dae35876345b625ae420056b95b01 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_ALIGNMENT(SORT_BY_ALIGNMENT()) --sort-section name
 #nm: -n
 
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text3a
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#pass
index 62363bcf619cdadf89a62b42d65fc9b839288cf2..dd5c613b80630881940ad709f14488f60bada73e 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_ALIGNMENT(SORT_BY_NAME())
 #nm: -n
 
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text3a
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#pass
index 7402836232cd1f7dc7870f60ddc7eec5c43f7ab4..f87ddd58788031cac978ef9e96bbde813abb32f8 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_ALIGNMENT(SORT_BY_NAME()) --sort-section name
 #nm: -n
 
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text3a
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#pass
index 4421c77f9f94c8bb214a04b8278fb3e01d4962e7..bf7ee4e00682355a03658fcf9f05ab037f932f02 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_ALIGNMENT(SORT_BY_NAME()) --sort-section alignment
 #nm: -n
 
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text3a
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#pass
index 42bdcf91aa290783d3b4a8fb452722e68b74de19..76d60b62771b6d8ca1b066358a8bfbf476139a39 100644 (file)
@@ -3,7 +3,12 @@
 #name: --sort-section name
 #nm: -n
 
+#...
 0[0-9a-f]* t text
+#...
 0[0-9a-f]* t text1
+#...
 0[0-9a-f]* t text2
+#...
 0[0-9a-f]* t text3
+#pass
index 531a756c4f0f630c8b69e3c19ad699d99144e07a..5ef07b2fa23c0f1d875cb252d7e75221c2970082 100644 (file)
@@ -3,7 +3,12 @@
 #name: SORT_BY_NAME
 #nm: -n
 
+#...
 0[0-9a-f]* t text
+#...
 0[0-9a-f]* t text1
+#...
 0[0-9a-f]* t text2
+#...
 0[0-9a-f]* t text3
+#pass
index ee123bf676ef6169bb9f3ae5afe981799bf97749..22d684809fc2a596d267cb343a7d4b51629c7b9b 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_NAME(SORT_BY_ALIGNMENT())
 #nm: -n
 
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text3a
+#pass
index 82f1805304474ed86bd735676a5661b5f9f50cfd..4c9d8fedfff0b9bd91f630f612eee9a0fb6d16a0 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_NAME(SORT_BY_ALIGNMENT()) --sort-section alignment
 #nm: -n
 
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text3a
+#pass
index 5f3c8632288694e19078a4885369b62fe3ada3a3..6657046705505863421758eeac7a32bc4d31ae31 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_NAME(SORT_BY_ALIGNMENT()) --sort-section alignment
 #nm: -n
 
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text3a
+#pass
index 0bc18aefd3b3045d5cf32a48bbeef78145bce9ac..b2b2dbe5c9f81bd112cb1d3196b81a1a835e229e 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_NAME(SORT_BY_NAME())
 #nm: -n
 
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#...
 0[0-9a-f]* t text3a
+#...
 0[0-9a-f]* t text3b
+#pass
index 834bf90f7d664911e7156278bf3945c41cff05b3..15b66e4e27a213065edb74e4d4eee4cd3475723e 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_NAME(SORT_BY_NAME()) --sort-section name
 #nm: -n
 
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#...
 0[0-9a-f]* t text3a
+#...
 0[0-9a-f]* t text3b
+#pass
index 7ba8a8b08c859cba2421107415174cb897110466..b99f7e141ef9f2751917837c022f3173318646b6 100644 (file)
@@ -4,11 +4,20 @@
 #name: SORT_BY_NAME(SORT_BY_NAME()) --sort-section alignment
 #nm: -n
 
+#...
 0[0-9a-f]* t texta
+#...
 0[0-9a-f]* t textb
+#...
 0[0-9a-f]* t text1a
+#...
 0[0-9a-f]* t text1b
+#...
 0[0-9a-f]* t text2a
+#...
 0[0-9a-f]* t text2b
+#...
 0[0-9a-f]* t text3b
+#...
 0[0-9a-f]* t text3a
+#pass
index aef786391ba5136df4c3164ba46a80025a810bdc..c5f5593b6d525ab4baf53807cb7a2e44ce5682fb 100644 (file)
@@ -3,7 +3,12 @@
 #name: no SORT_BY_NAME/SORT_BY_ALIGNMENT/SORT
 #nm: -n
 
+#...
 0[0-9a-f]* t text
+#...
 0[0-9a-f]* t text2
+#...
 0[0-9a-f]* t text3
+#...
 0[0-9a-f]* t text1
+#pass
index ddcd1c10e1968e182351a11b5f0eeac31c0a9b35..e0943d5bb7789e65281f3aab1ca4f1a1d02d9ed5 100644 (file)
@@ -3,7 +3,12 @@
 #name: no SORT_BY_NAME/SORT_BY_ALIGNMENT/SORT
 #nm: -n
 
+#...
 0[0-9a-f]* t text
+#...
 0[0-9a-f]* t text2
+#...
 0[0-9a-f]* t text3
+#...
 0[0-9a-f]* t text1
+#pass