[Bug gold/21444] internal error in relocate_tls, at ../../gold/sparc.cc:3789

2017-05-06 Thread jrtc27 at jrtc27 dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21444

--- Comment #1 from James Clarke  ---
I submitted a patch for this to the mailing list a week ago -
https://sourceware.org/ml/binutils/2017-04/msg00276.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/21464] relocation truncated to fit: R_OR1K_GOT16 on OpenRISC, when linking libQtGui.so.4.8.7

2017-05-06 Thread thomas.petazz...@free-electrons.com
https://sourceware.org/bugzilla/show_bug.cgi?id=21464

Thomas Petazzoni  changed:

   What|Removed |Added

Version|2.27|2.28

--- Comment #2 from Thomas Petazzoni  ---
The same issue still exists with binutils 2.28. Steps to reproduce:

$ git://git.busybox.net/buildroot
$ cd buildroot/
$ git checkout 25902b111a93e562e3c1991f65c03649c88802c4
$ cat > .config 

[Bug ld/21464] New: relocation truncated to fit: R_OR1K_GOT16 on OpenRISC, when linking libQtGui.so.4.8.7

2017-05-06 Thread thomas.petazz...@free-electrons.com
https://sourceware.org/bugzilla/show_bug.cgi?id=21464

Bug ID: 21464
   Summary: relocation truncated to fit: R_OR1K_GOT16 on OpenRISC,
when linking libQtGui.so.4.8.7
   Product: binutils
   Version: 2.27
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: thomas.petazz...@free-electrons.com
  Target Milestone: ---

When building the GUI module of Qt 4.8.7 on OpenRISC, the binutils 2.27 linker
barfs with:

/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/crtbeginS.o:
In function `register_tm_clones':
crtstuff.c:(.text+0xd8): relocation truncated to fit: R_OR1K_GOT16 against
undefined symbol `_ITM_registerTMCloneTable'
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/crtbeginS.o:
In function `__do_global_dtors_aux':
crtstuff.c:(.text+0x1e0): relocation truncated to fit: R_OR1K_GOT16 against
symbol `__deregister_frame_info@@GLIBC_2.0' defined in .text section in
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/lib/libgcc_s.so
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/crtbeginS.o:
In function `frame_dummy':
crtstuff.c:(.text+0x278): relocation truncated to fit: R_OR1K_GOT16 against
symbol `__register_frame_info@@GLIBC_2.0' defined in .text section in
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/lib/libgcc_s.so
crtstuff.c:(.text+0x2c0): relocation truncated to fit: R_OR1K_GOT16 against
undefined symbol `_Jv_RegisterClasses'
.obj/debug-shared-emb-generic/qtextdocumentfragment.o: In function
`QString::QString()':
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/src/gui/../../include/QtCore/../../src/corelib/tools/qstring.h:879:(.text+0x434):
relocation truncated to fit: R_OR1K_GOT16 against symbol `QString::shared_null'
defined in .data section in
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/lib/libQtCore.so
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/src/gui/../../include/QtCore/../../src/corelib/tools/qstring.h:879:(.text+0x440):
relocation truncated to fit: R_OR1K_GOT16 against symbol `QString::shared_null'
defined in .data section in
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/lib/libQtCore.so
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/src/gui/../../include/QtCore/../../src/corelib/tools/qstring.h:879:(.text+0x4a8):
relocation truncated to fit: R_OR1K_GOT16 against symbol `QString::shared_null'
defined in .data section in
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/lib/libQtCore.so
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/src/gui/../../include/QtCore/../../src/corelib/tools/qstring.h:879:(.text+0x4ac):
relocation truncated to fit: R_OR1K_GOT16 against symbol `QString::shared_null'
defined in .data section in
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/lib/libQtCore.so
.obj/debug-shared-emb-generic/qtextdocumentfragment.o: In function
`QByteArray::QByteArray()':
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/src/gui/../../include/QtCore/../../src/corelib/tools/qbytearray.h:400:(.text+0x544):
relocation truncated to fit: R_OR1K_GOT16 against symbol
`QByteArray::shared_null' defined in .data section in
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/lib/libQtCore.so
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/src/gui/../../include/QtCore/../../src/corelib/tools/qbytearray.h:400:(.text+0x558):
relocation truncated to fit: R_OR1K_GOT16 against symbol
`QByteArray::shared_null' defined in .data section in
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/lib/libQtCore.so
.obj/debug-shared-emb-generic/qtextdocumentfragment.o: In function
`QString::QString()':
/home/rclinux/rc-buildroot-test/scripts/instance-0/output/build/qt-4.8.7/src/gui/../../include/QtCore/../../src/corelib/tools/qstring.h:879:(.text+0x78c):
additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status

This issue can be reproduced using the following steps:

$ git://git.busybox.net/buildroot
$ cd buildroot/
$ git checkout 25902b111a93e562e3c1991f65c03649c88802c4
$ cat > .config