This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: emulating tls for systems without


I refer to this message (and the whole thread): http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00903.html

It breaks libjava for mingw. Compiling a simple System.out.println("Hello") fails with:

d:/programming/javacompiler/utilities/gcc-4.2.0-win/bin/../lib/gcc/i686-pc-mingw32/4.2.0/../../../libgcj.a(natClass.o): In function `Z19_Jv_FreeMethodCachev':
/home/Marco/.eclipse_workspace/GCC-source/libjava/java/lang/natClass.cc:953: undefined reference to `__emutls_get_address'
/home/Marco/.eclipse_workspace/GCC-source/libjava/java/lang/natClass.cc:956: undefined reference to `__emutls_get_address'
d:/programming/javacompiler/utilities/gcc-4.2.0-win/bin/../lib/gcc/i686-pc-mingw32/4.2.0/../../../libgcj.a(natClass.o): In function `Jv_LookupInterfaceMethod':
/home/Marco/.eclipse_workspace/GCC-source/libjava/java/lang/natClass.cc:913: undefined reference to `__emutls_get_address'
/home/Marco/.eclipse_workspace/GCC-source/libjava/java/lang/natClass.cc:934: undefined reference to `__emutls_get_address'
/home/Marco/.eclipse_workspace/GCC-source/libjava/java/lang/natClass.cc:936: undefined reference to `__emutls_get_address'
collect2: ld returned 1 exit status



Marco



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]