[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/2174] New: linking error : relocation truncated to fit: R_PPC_LO
From: |
kriti dot dutta at oracle dot com |
Subject: |
[Bug ld/2174] New: linking error : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffffffffc |
Date: |
18 Jan 2006 12:36:12 -0000 |
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_+fffffffffffffffc
/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_+fffffffffffffffc
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_+fffffffffffffffc
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 <stdio.h>
char realbig[36000032] = {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*>(DCSFormatRule* const*, DCSFormatRule*
const*, DCSFormatRule**)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa294): In function `DCBAggregateReference**
std::__copy_trivial<DCBAggregateReference*>(DCBAggregateReference* const*,
DCBAggregateReference* const*, DCBAggregateReference**)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa304): In function `DCBView**
std::__copy_trivial<DCBView*>(DCBView* const*, DCBView* const*, DCBView**)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa404): In function `DCBResultSet**
std::__copy_trivial<DCBResultSet*>(DCBResultSet* const*, DCBResultSet* const*,
DCBResultSet**)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa474): In function `DCBParameterItemInstance**
std::__copy_trivial<DCBParameterItemInstance*>(DCBParameterItemInstance*
const*, DCBParameterItemInstance* const*, DCBParameterItemInstance**)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa574): In function `unsigned short*
std::__copy_trivial<unsigned short>(unsigned short const*, unsigned short
const*, unsigned short*)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa5e4): In function `int* std::__copy_trivial<int>
(int const*, int const*, int*)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa654): In function `DCEPrivateFilterHandle**
std::__copy_trivial<DCEPrivateFilterHandle*>(DCEPrivateFilterHandle* const*,
DCEPrivateFilterHandle* const*, DCEPrivateFilterHandle**)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa6c4): In function `DCEFilterHandle**
std::__copy_trivial<DCEFilterHandle*>(DCEFilterHandle* const*, DCEFilterHandle*
const*, DCEFilterHandle**)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa734): In function `DCWExceptionRange**
std::__copy_trivial<DCWExceptionRange*>(DCWExceptionRange* const*,
DCWExceptionRange* const*, DCWExceptionRange**)':
: relocation truncated to fit: R_PPC_LOCAL24PC
_GLOBAL_OFFSET_TABLE_+fffffffffffffffc
objws/opt/dcsdprvd.o(.text+0xaa7a4): In function `DCBViewMatrixSortKey**
std::__copy_trivial<DCBViewMatrixSortKey*>(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 instantiations in our code.So can anybody let me know where I am
going wrong or do I need some patch to solve this issue.
--
Summary: linking error : relocation truncated to fit:
R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffffffffc
Product: binutils
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: kriti dot dutta at oracle dot com
CC: bug-binutils at gnu dot org
GCC host triplet: Linux PPC
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 ld/2174] New: linking error : relocation truncated to fit: R_PPC_LOCAL24PC _GLOBAL_OFFSET_TABLE_+fffffffffffffffc,
kriti dot dutta at oracle dot com <=