summaryrefslogtreecommitdiff
path: root/weak/a.s
diff options
context:
space:
mode:
Diffstat (limited to 'weak/a.s')
-rw-r--r--weak/a.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/weak/a.s b/weak/a.s
new file mode 100644
index 0000000..b01c5b8
--- /dev/null
+++ b/weak/a.s
@@ -0,0 +1,28 @@
+ .file "a.c"
+ .text
+ .p2align 4,,15
+ .globl __sym
+ .def __sym; .scl 2; .type 32; .endef
+ .seh_proc __sym
+__sym:
+ .seh_endprologue
+ leal 1(%rcx), %eax
+ ret
+ .seh_endproc
+ .weak sym
+ .def sym; .scl 2; .type 32; .endef
+ .set sym,__sym
+ .p2align 4,,15
+ .globl same
+ .def same; .scl 2; .type 32; .endef
+ .seh_proc same
+same:
+ subq $40, %rsp
+ .seh_stackalloc 40
+ .seh_endprologue
+ call sym
+ leal (%rax,%rax,2), %eax
+ addq $40, %rsp
+ ret
+ .seh_endproc
+ .ident "GCC: (GNU) 4.8.2"