1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Provide hooks for libgcc symbols' address resolution inside lli on mingw32.

Patch by Julien Lerouge!

llvm-svn: 52037
This commit is contained in:
Anton Korobeynikov 2008-06-06 07:20:07 +00:00
parent 23e9cfc581
commit 3e9eeaf6c9

View File

@ -134,6 +134,21 @@ bool DynamicLibrary::LoadLibraryPermanently(const char *filename,
#if defined(__MINGW32__)
EXPLICIT_SYMBOL_DEF(_alloca);
EXPLICIT_SYMBOL_DEF(__main);
EXPLICIT_SYMBOL_DEF(__ashldi3);
EXPLICIT_SYMBOL_DEF(__ashrdi3);
EXPLICIT_SYMBOL_DEF(__cmpdi2);
EXPLICIT_SYMBOL_DEF(__divdi3);
EXPLICIT_SYMBOL_DEF(__eprintf);
EXPLICIT_SYMBOL_DEF(__fixdfdi);
EXPLICIT_SYMBOL_DEF(__fixsfdi);
EXPLICIT_SYMBOL_DEF(__fixunsdfdi);
EXPLICIT_SYMBOL_DEF(__fixunssfdi);
EXPLICIT_SYMBOL_DEF(__floatdidf);
EXPLICIT_SYMBOL_DEF(__floatdisf);
EXPLICIT_SYMBOL_DEF(__lshrdi3);
EXPLICIT_SYMBOL_DEF(__moddi3);
EXPLICIT_SYMBOL_DEF(__udivdi3);
EXPLICIT_SYMBOL_DEF(__umoddi3);
#elif defined(_MSC_VER)
EXPLICIT_SYMBOL_DEF(_alloca_probe);
#endif
@ -157,6 +172,21 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
{
EXPLICIT_SYMBOL(_alloca);
EXPLICIT_SYMBOL(__main);
EXPLICIT_SYMBOL(__ashldi3);
EXPLICIT_SYMBOL(__ashrdi3);
EXPLICIT_SYMBOL(__cmpdi2);
EXPLICIT_SYMBOL(__divdi3);
EXPLICIT_SYMBOL(__eprintf);
EXPLICIT_SYMBOL(__fixdfdi);
EXPLICIT_SYMBOL(__fixsfdi);
EXPLICIT_SYMBOL(__fixunsdfdi);
EXPLICIT_SYMBOL(__fixunssfdi);
EXPLICIT_SYMBOL(__floatdidf);
EXPLICIT_SYMBOL(__floatdisf);
EXPLICIT_SYMBOL(__lshrdi3);
EXPLICIT_SYMBOL(__moddi3);
EXPLICIT_SYMBOL(__udivdi3);
EXPLICIT_SYMBOL(__umoddi3);
EXPLICIT_SYMBOL2(alloca, _alloca);
#undef EXPLICIT_SYMBOL