From: Alan Modra Date: Wed, 9 Sep 2009 12:13:42 +0000 (+0000) Subject: * ld-elf/sec64k.exp: For frv-linux use "aw" sections. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53b0eb27a9f231167f09e862695004b89c3d3c1a;p=binutils-gdb.git * 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. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 4aad9dc1d97..e11aa76c597 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,33 @@ +2009-09-09 Alan Modra + + * 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 * ld-elf/merge.d: xfail cr16-*-*. diff --git a/ld/testsuite/ld-elf/extract-symbol-1sym.d b/ld/testsuite/ld-elf/extract-symbol-1sym.d index f3729329732..4069191f700 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 bab47c352d7..285e83af5ba 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 c858c134072..d9436aeb776 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 15725cb1da9..99df49944c4 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 d2710f9c9a8..0a1a9eb7987 100644 --- a/ld/testsuite/ld-elf/symbol2ref.s +++ b/ld/testsuite/ld-elf/symbol2ref.s @@ -1,3 +1,3 @@ - .text + .data .dc.a Foo diff --git a/ld/testsuite/ld-scripts/empty-address-1.d b/ld/testsuite/ld-scripts/empty-address-1.d index 99fac1e58b5..29301ea8eaf 100644 --- a/ld/testsuite/ld-scripts/empty-address-1.d +++ b/ld/testsuite/ld-scripts/empty-address-1.d @@ -1,5 +1,6 @@ #ld: -T empty-address-1.t #nm: -n +#notarget: frv-*-*linux* #... 0+0 T _start #... diff --git a/ld/testsuite/ld-scripts/empty-address-2a.d b/ld/testsuite/ld-scripts/empty-address-2a.d index d831d5ffd1a..15fc65cc089 100644 --- a/ld/testsuite/ld-scripts/empty-address-2a.d +++ b/ld/testsuite/ld-scripts/empty-address-2a.d @@ -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 #... diff --git a/ld/testsuite/ld-scripts/empty-address-2b.d b/ld/testsuite/ld-scripts/empty-address-2b.d index 514fd68e260..29b806947e6 100644 --- a/ld/testsuite/ld-scripts/empty-address-2b.d +++ b/ld/testsuite/ld-scripts/empty-address-2b.d @@ -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 #... diff --git a/ld/testsuite/ld-scripts/empty-aligned.d b/ld/testsuite/ld-scripts/empty-aligned.d index 4b7b84b9014..283ef649366 100644 --- a/ld/testsuite/ld-scripts/empty-aligned.d +++ b/ld/testsuite/ld-scripts/empty-aligned.d @@ -2,6 +2,7 @@ #ld: -T empty-aligned.t #readelf: -l --wide #xfail: "hppa64-*-*" +#notarget: frv-*-*linux* #... Program Headers: diff --git a/ld/testsuite/ld-scripts/sort_b_a-1.d b/ld/testsuite/ld-scripts/sort_b_a-1.d index eaa917de570..325193c3d43 100644 --- a/ld/testsuite/ld-scripts/sort_b_a-1.d +++ b/ld/testsuite/ld-scripts/sort_b_a-1.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_a.d b/ld/testsuite/ld-scripts/sort_b_a.d index 78fe1f10158..0f558089c89 100644 --- a/ld/testsuite/ld-scripts/sort_b_a.d +++ b/ld/testsuite/ld-scripts/sort_b_a.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_a_a-1.d b/ld/testsuite/ld-scripts/sort_b_a_a-1.d index 4f70646c128..930f7480d2a 100644 --- a/ld/testsuite/ld-scripts/sort_b_a_a-1.d +++ b/ld/testsuite/ld-scripts/sort_b_a_a-1.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_a_a-2.d b/ld/testsuite/ld-scripts/sort_b_a_a-2.d index 65919a448a3..3e7d1588aa6 100644 --- a/ld/testsuite/ld-scripts/sort_b_a_a-2.d +++ b/ld/testsuite/ld-scripts/sort_b_a_a-2.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_a_a-3.d b/ld/testsuite/ld-scripts/sort_b_a_a-3.d index 21b7732cfcb..b1b060093c1 100644 --- a/ld/testsuite/ld-scripts/sort_b_a_a-3.d +++ b/ld/testsuite/ld-scripts/sort_b_a_a-3.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_a_n-1.d b/ld/testsuite/ld-scripts/sort_b_a_n-1.d index 62363bcf619..dd5c613b806 100644 --- a/ld/testsuite/ld-scripts/sort_b_a_n-1.d +++ b/ld/testsuite/ld-scripts/sort_b_a_n-1.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_a_n-2.d b/ld/testsuite/ld-scripts/sort_b_a_n-2.d index 7402836232c..f87ddd58788 100644 --- a/ld/testsuite/ld-scripts/sort_b_a_n-2.d +++ b/ld/testsuite/ld-scripts/sort_b_a_n-2.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_a_n-3.d b/ld/testsuite/ld-scripts/sort_b_a_n-3.d index 4421c77f9f9..bf7ee4e0068 100644 --- a/ld/testsuite/ld-scripts/sort_b_a_n-3.d +++ b/ld/testsuite/ld-scripts/sort_b_a_n-3.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_n-1.d b/ld/testsuite/ld-scripts/sort_b_n-1.d index 42bdcf91aa2..76d60b62771 100644 --- a/ld/testsuite/ld-scripts/sort_b_n-1.d +++ b/ld/testsuite/ld-scripts/sort_b_n-1.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_n.d b/ld/testsuite/ld-scripts/sort_b_n.d index 531a756c4f0..5ef07b2fa23 100644 --- a/ld/testsuite/ld-scripts/sort_b_n.d +++ b/ld/testsuite/ld-scripts/sort_b_n.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_n_a-1.d b/ld/testsuite/ld-scripts/sort_b_n_a-1.d index ee123bf676e..22d684809fc 100644 --- a/ld/testsuite/ld-scripts/sort_b_n_a-1.d +++ b/ld/testsuite/ld-scripts/sort_b_n_a-1.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_n_a-2.d b/ld/testsuite/ld-scripts/sort_b_n_a-2.d index 82f18053044..4c9d8fedfff 100644 --- a/ld/testsuite/ld-scripts/sort_b_n_a-2.d +++ b/ld/testsuite/ld-scripts/sort_b_n_a-2.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_n_a-3.d b/ld/testsuite/ld-scripts/sort_b_n_a-3.d index 5f3c8632288..66570467055 100644 --- a/ld/testsuite/ld-scripts/sort_b_n_a-3.d +++ b/ld/testsuite/ld-scripts/sort_b_n_a-3.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_n_n-1.d b/ld/testsuite/ld-scripts/sort_b_n_n-1.d index 0bc18aefd3b..b2b2dbe5c9f 100644 --- a/ld/testsuite/ld-scripts/sort_b_n_n-1.d +++ b/ld/testsuite/ld-scripts/sort_b_n_n-1.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_n_n-2.d b/ld/testsuite/ld-scripts/sort_b_n_n-2.d index 834bf90f7d6..15b66e4e27a 100644 --- a/ld/testsuite/ld-scripts/sort_b_n_n-2.d +++ b/ld/testsuite/ld-scripts/sort_b_n_n-2.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_b_n_n-3.d b/ld/testsuite/ld-scripts/sort_b_n_n-3.d index 7ba8a8b08c8..b99f7e141ef 100644 --- a/ld/testsuite/ld-scripts/sort_b_n_n-3.d +++ b/ld/testsuite/ld-scripts/sort_b_n_n-3.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_no-1.d b/ld/testsuite/ld-scripts/sort_no-1.d index aef786391ba..c5f5593b6d5 100644 --- a/ld/testsuite/ld-scripts/sort_no-1.d +++ b/ld/testsuite/ld-scripts/sort_no-1.d @@ -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 diff --git a/ld/testsuite/ld-scripts/sort_no-2.d b/ld/testsuite/ld-scripts/sort_no-2.d index ddcd1c10e19..e0943d5bb77 100644 --- a/ld/testsuite/ld-scripts/sort_no-2.d +++ b/ld/testsuite/ld-scripts/sort_no-2.d @@ -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