diff options
Diffstat (limited to 'lib/System/SearchForAddressOfSpecialSymbol.cpp')
-rw-r--r-- | lib/System/SearchForAddressOfSpecialSymbol.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/System/SearchForAddressOfSpecialSymbol.cpp b/lib/System/SearchForAddressOfSpecialSymbol.cpp index 73b484c..51ba417 100644 --- a/lib/System/SearchForAddressOfSpecialSymbol.cpp +++ b/lib/System/SearchForAddressOfSpecialSymbol.cpp @@ -32,7 +32,6 @@ static void *DoSearch(const char* symbolName) { EXPLICIT_SYMBOL(__ashrdi3); EXPLICIT_SYMBOL(__cmpdi2); EXPLICIT_SYMBOL(__divdi3); - EXPLICIT_SYMBOL(__eprintf); EXPLICIT_SYMBOL(__fixdfdi); EXPLICIT_SYMBOL(__fixsfdi); EXPLICIT_SYMBOL(__fixunsdfdi); @@ -43,6 +42,11 @@ static void *DoSearch(const char* symbolName) { EXPLICIT_SYMBOL(__moddi3); EXPLICIT_SYMBOL(__udivdi3); EXPLICIT_SYMBOL(__umoddi3); + + // __eprintf is sometimes used for assert() handling on x86. +#ifdef __i386__ + EXPLICIT_SYMBOL(__eprintf); +#endif } #endif |