diff options
Diffstat (limited to 'lib/alloca86_64.S')
-rw-r--r-- | lib/alloca86_64.S | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/alloca86_64.S b/lib/alloca86_64.S index ae3c97d..5195eca 100644 --- a/lib/alloca86_64.S +++ b/lib/alloca86_64.S @@ -1,9 +1,14 @@ /* ---------------------------------------------- */ /* alloca86_64.S */ -.globl alloca +#ifdef __leading_underscore +# define _(s) _##s +#else +# define _(s) s +#endif -alloca: +.globl _(alloca) +_(alloca): pop %rdx #ifdef _WIN32 mov %rcx,%rax @@ -24,7 +29,6 @@ p1: jmp p1 p2: #endif - sub %rax,%rsp mov %rsp,%rax p3: |