summaryrefslogtreecommitdiff
path: root/weak/a.s
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-06-05 23:07:14 -0400
committermidipix <writeonce@midipix.org>2015-06-05 23:07:14 -0400
commit470f811eacf4ff872d8ac658a58fe4fed8110979 (patch)
tree4f0e3cc0b5aee74c0d97c1f6e1ddb45985d70d9a /weak/a.s
parent9a309e895bb88a083440228bd32c5766d540e1a7 (diff)
downloadscrap-main.tar.bz2
scrap-main.tar.xz
[s]eeing is believing.HEADmain
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"