summaryrefslogtreecommitdiff
path: root/test/elf/X86_64/Inputs/weak.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/elf/X86_64/Inputs/weak.s')
-rw-r--r--test/elf/X86_64/Inputs/weak.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/elf/X86_64/Inputs/weak.s b/test/elf/X86_64/Inputs/weak.s
new file mode 100644
index 0000000000000..64ce779553b62
--- /dev/null
+++ b/test/elf/X86_64/Inputs/weak.s
@@ -0,0 +1,21 @@
+ .file "weak.s"
+ .text
+ .p2align 4,,15
+ .globl test
+ .type test, @function
+test:
+ ret
+ .size test, .-test
+ .weak myfn2
+ .data
+ .align 8
+ .type myfn2, @object
+ .size myfn2, 8
+myfn2:
+ .quad test
+ .weak myfn1
+ .align 8
+ .type myfn1, @object
+ .size myfn1, 8
+myfn1:
+ .quad test