diff options
Diffstat (limited to 'ld/testsuite/ld-elfweak')
-rw-r--r-- | ld/testsuite/ld-elfweak/size2.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/size2a.s | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elfweak/size2b.s | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elfweak/size2.d b/ld/testsuite/ld-elfweak/size2.d index 3000512..4468dda 100644 --- a/ld/testsuite/ld-elfweak/size2.d +++ b/ld/testsuite/ld-elfweak/size2.d @@ -4,7 +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 66b6d17..c9ad914 100644 --- a/ld/testsuite/ld-elfweak/size2a.s +++ b/ld/testsuite/ld-elfweak/size2a.s @@ -1,9 +1,13 @@ .text .global _start + .global __start .type _start, "function" + .type __start, "function" _start: +__start: .byte 0 .size _start, 1 + .size __start, 1 .weak foo .type foo, "function" diff --git a/ld/testsuite/ld-elfweak/size2b.s b/ld/testsuite/ld-elfweak/size2b.s index 27b89db..946c838 100644 --- a/ld/testsuite/ld-elfweak/size2b.s +++ b/ld/testsuite/ld-elfweak/size2b.s @@ -1,10 +1,14 @@ .text .weak _start + .weak __start .type _start, "function" + .type __start, "function" _start: +__start: .byte 0 .byte 0 .size _start, 2 + .size __start, 2 .weak foo .type foo, "function" |