diff options
author | Alan Modra <amodra@gmail.com> | 2005-07-27 00:08:40 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-07-27 00:08:40 +0000 |
commit | 9d6404037f7f759a8043325d55d2f46be9d7aa52 (patch) | |
tree | 1dfff414a33bb09775ef6894a9d2aae243af5ec8 /ld/testsuite/ld-elfweak | |
parent | 80531647e1dafa1a8f2128a18e6aef61f107460b (diff) | |
download | gdb-9d6404037f7f759a8043325d55d2f46be9d7aa52.zip gdb-9d6404037f7f759a8043325d55d2f46be9d7aa52.tar.gz gdb-9d6404037f7f759a8043325d55d2f46be9d7aa52.tar.bz2 |
* ld-elfweak/size2a.s: Extend test to check size for two weaks.
* ld-elfweak/size2b.s: Likewise.
* ld-elfweak/size2.d: Update.
Diffstat (limited to 'ld/testsuite/ld-elfweak')
-rw-r--r-- | ld/testsuite/ld-elfweak/size2.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/size2a.s | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/size2b.s | 7 |
3 files changed, 16 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elfweak/size2.d b/ld/testsuite/ld-elfweak/size2.d index 59d5489..3000512 100644 --- a/ld/testsuite/ld-elfweak/size2.d +++ b/ld/testsuite/ld-elfweak/size2.d @@ -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 #... diff --git a/ld/testsuite/ld-elfweak/size2a.s b/ld/testsuite/ld-elfweak/size2a.s index d5252ce..66b6d17 100644 --- a/ld/testsuite/ld-elfweak/size2a.s +++ b/ld/testsuite/ld-elfweak/size2a.s @@ -4,3 +4,9 @@ _start: .byte 0 .size _start, 1 + + .weak foo + .type foo, "function" +foo: + .byte 0 + .size foo, 1 diff --git a/ld/testsuite/ld-elfweak/size2b.s b/ld/testsuite/ld-elfweak/size2b.s index d4afe02..27b89db 100644 --- a/ld/testsuite/ld-elfweak/size2b.s +++ b/ld/testsuite/ld-elfweak/size2b.s @@ -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 |