* ld-elfweak/size2a.s: Extend test to check size for two weaks.
authorAlan Modra <amodra@gmail.com>
Wed, 27 Jul 2005 00:08:40 +0000 (00:08 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 27 Jul 2005 00:08:40 +0000 (00:08 +0000)
* ld-elfweak/size2b.s: Likewise.
* ld-elfweak/size2.d: Update.

ld/testsuite/ChangeLog
ld/testsuite/ld-elfweak/size2.d
ld/testsuite/ld-elfweak/size2a.s
ld/testsuite/ld-elfweak/size2b.s

index 23659abf2642c8bcb48abca1a23c747f5b4ec26e..3c06eb076a3995adedb84645d012d38dbf888e83 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * ld-elfweak/size2a.s: Extend test to check size for two weaks.
+       * ld-elfweak/size2b.s: Likewise.
+       * ld-elfweak/size2.d: Update.
+
 2005-07-18  Jan Beulich  <jbeulich@novell.com>
 
        * ld-i386/abs.s, ld-i386/zero.s, ld-i386/abs.d, ld-x86-64/abs.d,
index 59d54899d7292134ca4152f80452201710484272..3000512c16cc8b6caa419d9ee15a528524ac02fa 100644 (file)
@@ -4,5 +4,7 @@
 #readelf: -s
 Symbol table '.symtab' contains .* entries:
 #...
-    .*: [0-9a-f]* *1 *FUNC *GLOBAL *DEFAULT *[0-9] *_start
+    .*: [0-9a-f]* +1 +FUNC +GLOBAL +DEFAULT +[0-9] +_start
+#...
+    .*: [0-9a-f]* +1 +FUNC +WEAK +DEFAULT +[0-9] +foo
 #...
index d5252ce155013b04893749b379041aea60797144..66b6d178798fa0f37fa94758365105f5863041e3 100644 (file)
@@ -4,3 +4,9 @@
 _start:
        .byte 0
        .size _start, 1
+
+       .weak foo
+       .type foo, "function"
+foo:
+       .byte 0
+       .size foo, 1
index d4afe02efc495a9f4e1fe31e2d16bd67a46f6063..27b89dbbe2a7f9bc89d8fa7a71b4c354a7237dea 100644 (file)
@@ -5,3 +5,10 @@ _start:
        .byte 0
        .byte 0
        .size _start, 2
+
+       .weak foo
+       .type foo, "function"
+foo:
+       .byte 0
+       .byte 0
+       .size foo, 2