[llvm-commits] [llvm] r72329 - /llvm/trunk/lib/ExecutionEngine/JIT/Intercept.cpp
Torok Edwin
edwintorok at gmail.com
Sat May 23 09:24:05 PDT 2009
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
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);
More information about the llvm-commits
mailing list