diff options
Diffstat (limited to 'lld/test/ELF/aarch64-undefined-weak.s')
-rw-r--r-- | lld/test/ELF/aarch64-undefined-weak.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lld/test/ELF/aarch64-undefined-weak.s b/lld/test/ELF/aarch64-undefined-weak.s index cd5abf3a22ea..f9c8edbf73db 100644 --- a/lld/test/ELF/aarch64-undefined-weak.s +++ b/lld/test/ELF/aarch64-undefined-weak.s @@ -10,6 +10,9 @@ // is not generated. .weak target +.weak undefweak2 +.hidden undefweak2 + .text .global _start _start: @@ -36,6 +39,9 @@ _start: // R_AARCH64_PLT32 .word target@PLT - . +bl_undefweak2: + bl undefweak2 + // CHECK: Disassembly of section .text: // CHECK-EMPTY: // CHECK-NEXT: 0000000010010120 <_start>: @@ -51,3 +57,5 @@ _start: // CHECK-NEXT: 10010144: 00 00 00 00 .word 0x00000000 // CHECK-NEXT: 10010148: 00 00 00 00 .word 0x00000000 // CHECK-NEXT: 1001014c: 00 00 .short 0x0000 +// CHECK-LABEL: <bl_undefweak2>: +// CHECK-NEXT: bl {{.*}} <bl_undefweak2+0x4> |