bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/21464] relocation truncated to fit: R_OR1K_GOT16 on OpenRISC, wh


From: giulio.benetti at micronovasrl dot com
Subject: [Bug ld/21464] relocation truncated to fit: R_OR1K_GOT16 on OpenRISC, when linking libQtGui.so.4.8.7
Date: Fri, 28 Feb 2020 17:44:16 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21464

Giulio Benetti <giulio.benetti at micronovasrl dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giulio.benetti@micronovasrl
                   |                            |.com

--- Comment #3 from Giulio Benetti <giulio.benetti at micronovasrl dot com> ---
This issue still exists with version 2.31.1 when building protobuf on OpenRisc:

/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
BFD (GNU Binutils) 2.31.1 assertion fail elf32-or1k.c:1752
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:2694: libprotobuf-lite.la] Error 1
make[4]: *** Waiting for unfinished jobs....
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/crtbeginS.o:
in function `deregister_tm_clones':
crtstuff.c:(.text+0x48): relocation truncated to fit: R_OR1K_GOT16 against
undefined symbol `_ITM_deregisterTMCloneTable'
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/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/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/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+0x158): relocation truncated to fit: R_OR1K_GOT16 against
symbol `__cxa_finalize' defined in .text section in
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/or1k-buildroot-linux-uclibc/sysroot/lib/libc.so.1
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
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/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/lib/libgcc_s.so
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/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/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/lib/libgcc_s.so
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
crtstuff.c:(.text+0x2c0): relocation truncated to fit: R_OR1K_GOT16 against
undefined symbol `_Jv_RegisterClasses'
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
google/protobuf/stubs/.libs/bytestream.o: in function
`google::protobuf::strings::CheckedArrayByteSink::CheckedArrayByteSink(char*,
unsigned int)':
bytestream.cc:(.text+0x3bc): relocation truncated to fit: R_OR1K_GOT16 against
symbol `vtable for google::protobuf::strings::CheckedArrayByteSink' defined in
.data.rel.ro._ZTVN6google8protobuf7strings20CheckedArrayByteSinkE[_ZTVN6google8protobuf7strings20CheckedArrayByteSinkE]
section in google/protobuf/stubs/.libs/bytestream.o
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
google/protobuf/stubs/.libs/bytestream.o: in function
`google::protobuf::strings::GrowingArrayByteSink::GrowingArrayByteSink(unsigned
int)':
bytestream.cc:(.text+0x668): relocation truncated to fit: R_OR1K_GOT16 against
symbol `vtable for google::protobuf::strings::GrowingArrayByteSink' defined in
.data.rel.ro._ZTVN6google8protobuf7strings20GrowingArrayByteSinkE[_ZTVN6google8protobuf7strings20GrowingArrayByteSinkE]
section in google/protobuf/stubs/.libs/bytestream.o
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
google/protobuf/stubs/.libs/bytestream.o: in function
`google::protobuf::strings::GrowingArrayByteSink::~GrowingArrayByteSink()':
bytestream.cc:(.text+0x714): relocation truncated to fit: R_OR1K_GOT16 against
symbol `vtable for google::protobuf::strings::GrowingArrayByteSink' defined in
.data.rel.ro._ZTVN6google8protobuf7strings20GrowingArrayByteSinkE[_ZTVN6google8protobuf7strings20GrowingArrayByteSinkE]
section in google/protobuf/stubs/.libs/bytestream.o
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
google/protobuf/stubs/.libs/bytestream.o: in function
`google::protobuf::strings::LimitByteSource::LimitByteSource(google::protobuf::strings::ByteSource*,
unsigned int)':
bytestream.cc:(.text+0xf3c): relocation truncated to fit: R_OR1K_GOT16 against
symbol `vtable for google::protobuf::strings::LimitByteSource' defined in
.data.rel.ro._ZTVN6google8protobuf7strings15LimitByteSourceE[_ZTVN6google8protobuf7strings15LimitByteSourceE]
section in google/protobuf/stubs/.libs/bytestream.o
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
google/protobuf/stubs/.libs/bytestream.o: in function
`__static_initialization_and_destruction_0(int, int)':
bytestream.cc:(.text+0x1444): additional relocation overflows omitted from the
output
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
BFD (GNU Binutils) 2.31.1 assertion fail elf32-or1k.c:1752
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
BFD (GNU Binutils) 2.31.1 assertion fail elf32-or1k.c:1752
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/host/opt/ext-toolchain/bin/../lib/gcc/or1k-buildroot-linux-uclibc/5.4.0/../../../../or1k-buildroot-linux-uclibc/bin/ld:
BFD (GNU Binutils) 2.31.1 assertion fail elf32-or1k.c:1752
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:2847: libprotobuf.la] Error 1
make[3]: *** [Makefile:1733: all-recursive] Error 1
make[2]: *** [Makefile:1640: all] Error 2
make[1]: *** [package/pkg-generic.mk:274:
/home/giuliobenetti/br_reproduce/f800a5f24cb4b23231165ad60c03bf177bad4a9f/output/build/protobuf-3.11.0/.stamp_built]
Error 2
make: *** [Makefile:23: _all] Error 2

This issue can be reproduced using the following steps:

o reproduce it:

# git clone git://git.busybox.net/buildroot
# wget https://git.busybox.net/buildroot-test/tree/utils/br-reproduce-build

- modify BASE_GIT=... with your buildroot path in br-reproduce-build then:
# chmod a+x br-reproduce-build
# ./br-reproduce-build 9084cd777aefe0fa8235514c33767d8640ad7a5b

Can't still find a workaround.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]