[llvm-commits] [llvm] r72329 - /llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp

Chris Lattner clattner at apple.com
Mon May 25 15:44:49 PDT 2009


On May 23, 2009, at 9:24 AM, Torok Edwin wrote:

> Author: edwin
> Date: Sat May 23 11:23:59 2009
> New Revision: 72329
>
> URL: http://llvm.org/viewvc/llvm-project?rev=72329&view=rev
> Log:
> stat64/open64/lseek64 for the interpreter

stat64 was already listed.  Maybe the \1 isn't being stripped correctly?

-Chris

>
>
> Modified:
>    llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp
>
> Modified: llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp?rev=72329&r1=72328&r2=72329&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp (original)
> +++ llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp Sat May 23  
> 11:23:59 2009
> @@ -51,7 +51,7 @@
> #if defined(HAVE_SYS_STAT_H)
> #include <sys/stat.h>
> #endif
> -
> +#include <fcntl.h>
> /* stat functions are redirecting to __xstat with a version number.   
> On x86-64
>  * linking with libc_nonshared.a and -Wl,--export-dynamic doesn't  
> make 'stat'
>  * available as an exported symbol, so we have to add it explicitly.
> @@ -63,6 +63,9 @@
>     sys::DynamicLibrary::AddSymbol("fstat", (void*)(intptr_t)fstat);
>     sys::DynamicLibrary::AddSymbol("lstat", (void*)(intptr_t)lstat);
>     sys::DynamicLibrary::AddSymbol("stat64", (void*)(intptr_t)stat64);
> +    sys::DynamicLibrary::AddSymbol("\x1stat64", (void*) 
> (intptr_t)stat64);
> +    sys::DynamicLibrary::AddSymbol("\x1open64", (void*) 
> (intptr_t)open64);
> +    sys::DynamicLibrary::AddSymbol("\x1lseek64", (void*) 
> (intptr_t)lseek64);
>     sys::DynamicLibrary::AddSymbol("fstat64", (void*) 
> (intptr_t)fstat64);
>     sys::DynamicLibrary::AddSymbol("lstat64", (void*) 
> (intptr_t)lstat64);
>     sys::DynamicLibrary::AddSymbol("atexit", (void*)(intptr_t)atexit);
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list