* ld-elfvsb/hidden2.d: Expect OBJECT.
authorDaniel Jacobowitz <drow@false.org>
Tue, 22 Feb 2005 18:29:20 +0000 (18:29 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 22 Feb 2005 18:29:20 +0000 (18:29 +0000)
* ld-elfvsb/hidden2.s: Force type OBJECT.
* ld-elfvsb/hidden2.ld: Place .dynamic explicitly.
* ld-elf/start.s: Provide __start for MIPS.
* ld-elfcomm/elfcomm.exp: Accept MIPS common section.  XFAIL size change
test.
* ld-elf/warn1.d: Use group.ld instead of -Ttext.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/start.s
ld/testsuite/ld-elf/warn1.d
ld/testsuite/ld-elfcomm/elfcomm.exp
ld/testsuite/ld-elfvsb/hidden2.d
ld/testsuite/ld-elfvsb/hidden2.ld
ld/testsuite/ld-elfvsb/hidden2.s

index 6b9f5fb2f7c715143c9739fe1a2f243ceb7c54f9..bebbb15ab3021ea0e774f21f2e848922fda52df0 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * ld-elfvsb/hidden2.d: Expect OBJECT.
+       * ld-elfvsb/hidden2.s: Force type OBJECT.
+       * ld-elfvsb/hidden2.ld: Place .dynamic explicitly.
+       * ld-elf/start.s: Provide __start for MIPS.
+       * ld-elfcomm/elfcomm.exp: Accept MIPS common section.  XFAIL size change
+       test.
+       * ld-elf/warn1.d: Use group.ld instead of -Ttext.
+
 2005-02-21  Alan Modra  <amodra@bigpond.net.au>
 
        * lib/ld-lib.exp (run_dump_test): Don't require a dump program if
index f4c8af64e9e2ec934558ab8b203183703de749e0..86fc17c2405c669d20b39bafd587fd99f98dc09f 100644 (file)
@@ -1,4 +1,6 @@
        .text
        .global _start
 _start:
+       .global __start
+__start:
        .long 0
index 80f32b91491ebb382b515260e24b7fd399eef267..d5ee7b4525850b0ca8be79523cabd74d0e6403dd 100644 (file)
@@ -1,7 +1,7 @@
 #source: start.s
 #source: symbol1ref.s
 #source: symbol1w.s
-#ld: -Ttext 0x1000
+#ld: -T group.ld
 #warning: ^[^\\n]*\): warning: witty one-liner$
 #readelf: -s
 #notarget: "sparc64-*-solaris2*" "sparcv9-*-solaris2*"
index e5bd29b62f5d3e1c76d586d6a0ba0fb0da3cfa21..e84377a81821e883e4bf61894da35741c3c43e50 100644 (file)
@@ -45,7 +45,7 @@ proc dump_common1 { testname } {
 
     send_log "$READELF -s tmpdir/common1.o | grep foo\n"
     catch "exec $READELF -s tmpdir/common1.o | grep foo" exec_output
-    if { ![regexp "(\[         \]*)(\[0-9\]+):(\[      \]*)(\[0\]*)80(\[       \]+)4(\[        \]+)OBJECT(\[   \]+)GLOBAL(\[   \]+)DEFAULT(\[  \]+)COM(\[      \]+)_?foo2" $exec_output]
+    if { ![regexp "(\[         \]*)(\[0-9\]+):(\[      \]*)(\[0\]*)80(\[       \]+)4(\[        \]+)OBJECT(\[   \]+)GLOBAL(\[   \]+)DEFAULT(\[  \]+)(PRC\\\[0xff03\\\]|COM)(\[  \]+)_?foo2" $exec_output]
         || ![regexp "(\[       \]*)(\[0-9\]+):(\[      \]*)(\[0-9\]+)(\[       \]+)21(\[       \]+)OBJECT(\[   \]+)GLOBAL(\[   \]+)DEFAULT(\[  \]+)(\[0-9\]+)(\[       \]+)_?foo1" $exec_output] } {
        send_log "$exec_output\n"
        verbose $exec_output
@@ -72,7 +72,13 @@ if { [ld_simple_link $ld tmpdir/common1.o "-r tmpdir/common1a.o tmpdir/common1b.
 
 if { ![regexp "Warning: alignment (\[0-9\]+) of symbol \`_?foo1\' in tmpdir/common1b.o is smaller than 64 in tmpdir/common1a.o" $link_output]
      || ![regexp "Warning: size of symbol \`_?foo1\' changed from 2 in tmpdir/common1a.o to 21 in tmpdir/common1b.o" $link_output] } {
-    fail $test1w1
+    if { [istarget mips*-*-*] } {
+       # This test fails on MIPS because the backend sets type_change_ok.  The
+       # size change warning is suppressed.
+       xfail $test1w1
+    } else {
+       fail $test1w1
+    }
 } else {
     pass $test1w1
 }
index 25cfa4d414732685a2617b64a1c84d2d1c029833..14b0b30c9325a63dbbdc38dcccc4c43b3a4165b7 100644 (file)
@@ -5,5 +5,5 @@
 
 Symbol table for image:
 #...
-[      ]*[0-9]+ +[0-9]+: [0-9a-fA-F]* +0  NOTYPE  LOCAL HIDDEN +ABS foo
+[      ]*[0-9]+ +[0-9]+: [0-9a-fA-F]* +0  OBJECT  LOCAL HIDDEN +ABS foo
 #pass
index 1e4a2b0b07ba2e76cfdd704470a9e5f59e4351e4..3c414dba48701b4a8da2efb706aae9ab723b9f03 100644 (file)
@@ -3,4 +3,5 @@ SECTIONS
   . = 0x1000;
   PROVIDE (foo = .);
   .data : { *(.data) }
+  .dynamic : { *(.dynamic) }
 }
index beb123b5e2d87df52ab48c05c2e1bc647acc45da..62f110702d8805af457576cbced5256e52a52dcd 100644 (file)
@@ -1,4 +1,5 @@
        .data
        .hidden foo
        .global foo
+       .type foo,%object
        .dc.a foo