From 4793a023766e99d1e372bab6ab73d8063ea6e48c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 30 Sep 2011 18:49:46 -0700 Subject: [PATCH] rt: Omit leading underscore on symbol names on Linux --- src/rt/arch/i386/ccall.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rt/arch/i386/ccall.S b/src/rt/arch/i386/ccall.S index 1c8226e3d88..44d0c217736 100644 --- a/src/rt/arch/i386/ccall.S +++ b/src/rt/arch/i386/ccall.S @@ -4,8 +4,13 @@ // // Note that we could use |enter| and |leave| but the manuals tell me they're // slower. +#if defined(__APPLE__) || defined(_WIN32) .globl _upcall_call_c_stack _upcall_call_c_stack: +#else +.globl upcall_call_c_stack +upcall_call_c_stack: +#endif pushl %ebp movl %esp,%ebp // save esp movl 8(%esp),%eax // eax = callee