[Bug ld/2171] New: linking error : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffffffffc
Currently I am using the following to build my code: binutils-2.15.90.0.1.1-32.5 glibc-2.3.3-98.38 gcc version 3.3.3 Initially while building one of our library we got the following error:- usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../lib/crti.o(.text+0x10): In function `call_gmon_start': /usr/src/packages/BUILD/glibc-2.3/cc/csu/crti.S:16: relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/crtbeginS.o(.text+0xa4): In function `__do_global_dtors_aux': : relocation truncated to fit: R_PPC_PLTREL24 __cxa_finalize@@GLIBC_2.1.3 /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/crtbeginS.o(.fini+0x0): relocation truncated to fit: R_PPC_LOCAL24PC .text+4 /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/crtendS.o(.init+0x0): relocation truncated to fit: R_PPC_LOCAL24PC .text+4 obj/opt/dcbagg.o(.text+0x10): In function `__sinit65535()': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc obj/opt/dcbagg.o(.text+0x28): In function `__sinit65535()': : relocation truncated to fit: R_PPC_PLTREL24 _ZNSt8ios_base4InitC1Ev@@GLIBCPP_3.2 obj/opt/dcbagg.o(.text+0x34): In function `__sinit65535()': : relocation truncated to fit: R_PPC_PLTREL24 atexit obj/opt/dcbagg.o(.text+0x3c): In function `__sinit65535()': : relocation truncated to fit: R_PPC_PLTREL24 OLLogger_Dest::OLLogger_Dest() obj/opt/dcbagg.o(.text+0x48): In function `__sinit65535()': : relocation truncated to fit: R_PPC_PLTREL24 atexit obj/opt/dcbagg.o(.text+0x7c): In function `__srterm__0()': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc obj/opt/dcbagg.o(.text+0x90): In function `__srterm__0()': : additional relocation overflows omitted from the output A sample test program also gives a similar error: #include char realbig[3632] = {1,2}; int main() { printf ("&realbig = %#lx\n", &realbig); } Then by using the option "-Wl,--relax" to the link flag,the above error was solved.But now while building our final executabel I almost get the same kind of error:- objws/opt/dcsdprvd.o(.text+0xaa224): In function `DCSFormatRule** std::__copy_trivial(DCSFormatRule* const*, DCSFormatRule* const*, DCSFormatRule**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa294): In function `DCBAggregateReference** std::__copy_trivial(DCBAggregateReference* const*, DCBAggregateReference* const*, DCBAggregateReference**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa304): In function `DCBView** std::__copy_trivial(DCBView* const*, DCBView* const*, DCBView**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa404): In function `DCBResultSet** std::__copy_trivial(DCBResultSet* const*, DCBResultSet* const*, DCBResultSet**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa474): In function `DCBParameterItemInstance** std::__copy_trivial(DCBParameterItemInstance* const*, DCBParameterItemInstance* const*, DCBParameterItemInstance**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa574): In function `unsigned short* std::__copy_trivial(unsigned short const*, unsigned short const*, unsigned short*)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa5e4): In function `int* std::__copy_trivial (int const*, int const*, int*)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa654): In function `DCEPrivateFilterHandle** std::__copy_trivial(DCEPrivateFilterHandle* const*, DCEPrivateFilterHandle* const*, DCEPrivateFilterHandle**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa6c4): In function `DCEFilterHandle** std::__copy_trivial(DCEFilterHandle* const*, DCEFilterHandle* const*, DCEFilterHandle**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa734): In function `DCWExceptionRange** std::__copy_trivial(DCWExceptionRange* const*, DCWExceptionRange* const*, DCWExceptionRange**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa7a4): In function `DCBViewMatrixSortKey** std::__copy_trivial(DCBViewMatrixSortKey* const*, DCBViewMatrixSortKey* const*, DCBViewMatrixSortKey**)': : additional relocation overflows omitted from the output collect2: ld returned 1 exit status Its worth mentioning that if I comment out this file(dcsdprvd.cpp) from the makefile the same error is then thrown by some other object file and we have huge template in
[Bug ld/2174] New: linking error : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffffffffc
Currently I am using the following to build my code: binutils-2.15.90.0.1.1-32.5 glibc-2.3.3-98.38 gcc version 3.3.3 Initially while building one of our library we got the following error:- usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/../../../../lib/crti.o(.text+0x10): In function `call_gmon_start': /usr/src/packages/BUILD/glibc-2.3/cc/csu/crti.S:16: relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/crtbeginS.o(.text+0xa4): In function `__do_global_dtors_aux': : relocation truncated to fit: R_PPC_PLTREL24 __cxa_finalize@@GLIBC_2.1.3 /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/crtbeginS.o(.fini+0x0): relocation truncated to fit: R_PPC_LOCAL24PC .text+4 /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/crtendS.o(.init+0x0): relocation truncated to fit: R_PPC_LOCAL24PC .text+4 obj/opt/dcbagg.o(.text+0x10): In function `__sinit65535()': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc obj/opt/dcbagg.o(.text+0x28): In function `__sinit65535()': : relocation truncated to fit: R_PPC_PLTREL24 _ZNSt8ios_base4InitC1Ev@@GLIBCPP_3.2 obj/opt/dcbagg.o(.text+0x34): In function `__sinit65535()': : relocation truncated to fit: R_PPC_PLTREL24 atexit obj/opt/dcbagg.o(.text+0x3c): In function `__sinit65535()': : relocation truncated to fit: R_PPC_PLTREL24 OLLogger_Dest::OLLogger_Dest() obj/opt/dcbagg.o(.text+0x48): In function `__sinit65535()': : relocation truncated to fit: R_PPC_PLTREL24 atexit obj/opt/dcbagg.o(.text+0x7c): In function `__srterm__0()': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc obj/opt/dcbagg.o(.text+0x90): In function `__srterm__0()': : additional relocation overflows omitted from the output A sample test program also gives a similar error: #include char realbig[3632] = {1,2}; int main() { printf ("&realbig = %#lx\n", &realbig); } Then by using the option "-Wl,--relax" to the link flag,the above error was solved.But now while building our final executabel I almost get the same kind of error:- objws/opt/dcsdprvd.o(.text+0xaa224): In function `DCSFormatRule** std::__copy_trivial(DCSFormatRule* const*, DCSFormatRule* const*, DCSFormatRule**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa294): In function `DCBAggregateReference** std::__copy_trivial(DCBAggregateReference* const*, DCBAggregateReference* const*, DCBAggregateReference**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa304): In function `DCBView** std::__copy_trivial(DCBView* const*, DCBView* const*, DCBView**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa404): In function `DCBResultSet** std::__copy_trivial(DCBResultSet* const*, DCBResultSet* const*, DCBResultSet**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa474): In function `DCBParameterItemInstance** std::__copy_trivial(DCBParameterItemInstance* const*, DCBParameterItemInstance* const*, DCBParameterItemInstance**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa574): In function `unsigned short* std::__copy_trivial(unsigned short const*, unsigned short const*, unsigned short*)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa5e4): In function `int* std::__copy_trivial (int const*, int const*, int*)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa654): In function `DCEPrivateFilterHandle** std::__copy_trivial(DCEPrivateFilterHandle* const*, DCEPrivateFilterHandle* const*, DCEPrivateFilterHandle**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa6c4): In function `DCEFilterHandle** std::__copy_trivial(DCEFilterHandle* const*, DCEFilterHandle* const*, DCEFilterHandle**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa734): In function `DCWExceptionRange** std::__copy_trivial(DCWExceptionRange* const*, DCWExceptionRange* const*, DCWExceptionRange**)': : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffc objws/opt/dcsdprvd.o(.text+0xaa7a4): In function `DCBViewMatrixSortKey** std::__copy_trivial(DCBViewMatrixSortKey* const*, DCBViewMatrixSortKey* const*, DCBViewMatrixSortKey**)': : additional relocation overflows omitted from the output collect2: ld returned 1 exit status Its worth mentioning that if I comment out this file(dcsdprvd.cpp) from the makefile the same error is then thrown by some other object file and we have huge template in
[Bug binutils/1391] objcopy trashes PE executable when using "add-gnu-debuglink"
--- Additional Comments From nickc at redhat dot com 2006-01-18 10:51 --- Hi Guys, I have applied the patch, along with Danny's fix to make sure that the VMA is aligned. The changelog for it is shown below. Cheers Nick binutils/ChangeLog 2006-01-18 Nick Clifton <[EMAIL PROTECTED]> PR binutils/1391 * objcopy.c (copy_object): For PE format targets set the VMA of a newly created gnu_debuglink section to a non-zero, aligned, contiguous value. * Makefile.am (objcopy.c): Add a dependency upon libbfd.h. * Makefile.in: Regenerate. -- What|Removed |Added Status|WAITING |RESOLVED Resolution||FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=1391 --- 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
[Bug ld/2143] Unresolvable reference by DSO to hidden symbol despite --allow-shlib-undefined
--- Additional Comments From drow at false dot org 2006-01-18 14:52 --- Subject: Re: New: Unresolvable reference by DSO to hidden symbol despite --allow-shlib-undefined On Thu, Jan 12, 2006 at 11:40:56AM -, jan dot echternach at group-technologies dot com wrote: > I'm getting a "hidden symbol is referenced by DSO" error if I link a program > with both LSB2's libc.so and an old libnotes.so from Lotus Domino 6. > libnotes.so has an undefined reference to atexit, LSB2's libc.so has no > definition of that symbol, but there is a hidden atexit symbol in > libc_nonshared.a. > > I tried both the preinstalled ld (GNU ld version 2.15.94.0.2.2 20041220 (SuSE > Linux)) and the ld from binutils-2.16.91.0.5 (GNU ld version 2.16.91.0.5 > 20051219). > > I can reproduce the error without libnotes.so by linking with a dummy DSO > that > has only an undefined 'atexit' reference. It is possible to work around the > problem by removing the hidden atexit symbol from libc_nonshared.a. Another workaround should be providing a non-hidden definition of atexit. In other cases this error is valuable; perhaps it should be conditioned on --allow-shlib-undefined. -- http://sourceware.org/bugzilla/show_bug.cgi?id=2143 --- 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
How to overcome the problem created when binutils is installed?
Hi i have fedora core 3 distribution with gcc version 4.0 .When i installed binutils 2.13 each and every program when compiled gave an error Collect2 : ld 1 exit status (something like that) . I removed the libraries ( e.g libiberty.a ,etc) from the directory of /usr/lib .But the problem remained. Can anybody tell me what happens to the loader after the bintuils is installed and how to overcome it ?-- regards ashwani---It is by logic that we prove but by intuition that we discover... ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/2171] linking error : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffffffffc
--- Additional Comments From amodra at bigpond dot net dot au 2006-01-19 05:22 --- binutils-2.15.90.0.1.1-32.5 is SUSE SLES9, isn't it? You really should be reporting bugs in SLES9 to SUSE rather than here. For that reason, I have closed this bug, but I happened to have source for SLES9 binutils-2.15.90.0.1.1-32.10 available so took a look. It appears that SLES9 binutils misses one patch that will likely fix your problem, http://sourceware.org/ml/binutils/2005-01/msg00115.html You might like to try applying that to your binutils source and recompiling. Alternatively, using current CVS binutils should work for you. -- What|Removed |Added CC||amodra at bigpond dot net ||dot au Status|NEW |RESOLVED Resolution||INVALID http://sourceware.org/bugzilla/show_bug.cgi?id=2171 --- 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
[Bug ld/2171] linking error : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffffffffc
--- Additional Comments From amodra at bigpond dot net dot au 2006-01-19 06:28 --- *** Bug 2174 has been marked as a duplicate of this bug. *** -- http://sourceware.org/bugzilla/show_bug.cgi?id=2171 --- 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
[Bug ld/2174] linking error : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffffffffc
--- Additional Comments From amodra at bigpond dot net dot au 2006-01-19 06:28 --- *** This bug has been marked as a duplicate of 2171 *** -- What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE http://sourceware.org/bugzilla/show_bug.cgi?id=2174 --- 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