Hello,

since some time ago (I think all 2.20 versions suffer from this problem too)
xulrunner from firefox 3.6.8 (and some older) don't link properly in mips.

This happens compiling for ABI n32.

r0bertz did some analysis about the problem already two or three months ago, in
the binutils mailing list. And we still have not found any solution:
http://old.nabble.com/R_MIPS_TLS_GD-reloc-overflow-when-linking->%3Dxulrunner-1.9.1.5-td26755056.html

The last binutils I tried was a snapshot from the 12th of August.

So here you have the symptom. When linking libxul.so, it reports:
../../staticlib/components/libxpconnect.a(xpcjsruntime.o): In function
`XPCJSRuntime::GCCallback(JSContext*, JSGCStatus)':
xpcjsruntime.cpp:(.text+0x1514): relocation truncated to fit: R_MIPS_TLS_GD
against `gTLSIsMainThread'
../../staticlib/components/libxpconnect.a(xpcthreadcontext.o): In function
`XPCPerThreadData::GetDataImpl(JSContext*)':
xpcthreadcontext.cpp:(.text+0x834): relocation truncated to fit: R_MIPS_TLS_GD
against `gTLSIsMainThread'
../../staticlib/components/libnecko.a(nsSocketTransportService2.o): In function
`nsSocketTransportService::Shutdown()':
nsSocketTransportService2.cpp:(.text+0x1890): relocation truncated to fit:
R_MIPS_TLS_GD against `gTLSIsMainThread'
../../staticlib/components/libnecko.a(nsSocketTransportService2.o): In function
`nsSocketTransportService::Init()':
nsSocketTransportService2.cpp:(.text+0x19e4): relocation truncated to fit:
R_MIPS_TLS_GD against `gTLSIsMainThread'
../../staticlib/components/libuconv.a(nsCharsetConverterManager.o): In function
`nsCharsetConverterManager::GetCharsetAlias(char const*, nsACString_internal&)':
nsCharsetConverterManager.cpp:(.text+0xa78): relocation truncated to fit:
R_MIPS_TLS_GD against `gTLSIsMainThread'
collect2: ld returned 1 exit status

The objects linked have a gcc command-line like this:
c++ -o nsRDFResource.o -c -fvisibility=hidden -DMOZ_ENABLE_GTK2 -DMOZ_PLUGINS
-DMOZ_XPFE_COMPONENTS -DMOZ_XPINSTALL -DMOZ_JSDEBUGGER -DMOZ_PREF_EXTENSIONS
-DMOZ_AUTH_EXTENSION -DMOZ_PERMISSIONS -DMOZ_UNIVERSALCHARDET -DMOZ_FILEVIEW
-DMOZ_ENABLE_POSTSCRIPT -DMOZ_SPELLCHECK -DMOZ_ZIPWRITER -DMOZILLA_INTERNAL_API
-DOSTYPE=\"Linux2.6.35\" -DOSARCH=Linux -D_IMPL_NS_COM -D_IMPL_NS_STRINGAPI
-DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET
-DIMPL_XREAPI -I../../intl/unicharutil/util -I../../config
-I../../widget/src/windows -I../../widget/src/build  -I. -I.
-I../../dist/include -fPIC   -fno-rtti -fno-exceptions -Wall -Wpointer-arith
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -fno-strict-aliasing
-fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks
-fno-reorder-functions -DMOZILLA_CLIENT -include ../../mozilla-config.h
-Wp,-MD,.deps/nsRDFResource.pp nsRDFResource.cpp

The 'c++' linking command line mentions:
 -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe 
-DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -fPIC -shared

Regards,
LluĂ­s.

-- 
           Summary: relocation truncated to fit R_MIPS_TLS_GD linking
                    xulrunner
           Product: binutils
           Version: 2.21 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: viriketo at gmail dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: mips64-unknown-linux
  GCC host triplet: mips64-unknown-linux
GCC target triplet: mips64-unknown-linux


http://sourceware.org/bugzilla/show_bug.cgi?id=11956

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to