diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 23659abf26..3c06eb076a 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-07-27 Alan Modra + + * 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 * ld-i386/abs.s, ld-i386/zero.s, ld-i386/abs.d, ld-x86-64/abs.d, diff --git a/ld/testsuite/ld-elfweak/size2.d b/ld/testsuite/ld-elfweak/size2.d index 59d54899d7..3000512c16 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 d5252ce155..66b6d17879 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 d4afe02efc..27b89dbbe2 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