[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/13561] New: AIX link failure: RLD address not contained in secti
From: |
ka5427-536 at online dot de |
Subject: |
[Bug ld/13561] New: AIX link failure: RLD address not contained in section |
Date: |
Wed, 04 Jan 2012 22:17:24 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13561
Bug #: 13561
Summary: AIX link failure: RLD address not contained in section
Product: binutils
Version: 2.22
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
Created attachment 6146
--> http://sourceware.org/bugzilla/attachment.cgi?id=6146
Objects, Sources, Makefile
We are trying to use 'partial linking' to reduce the size of the resulting
binary. But it seems that the
object file produced by the partial link step is somehow corrupted. The AIX
linker complains with
ld: 0711-547 SEVERE ERROR: Object partial.o cannot be processed.
RLD address 0x10000364 for section 2 (.data) is
not contained in the section.
collect2: ld returned 12 exit status
Source files:
address@hidden> cat main.cpp
int main() {
return 0;
}
address@hidden> cat foo.cpp
#include <memory>
void foo() {
std::auto_ptr<int> p1(new int);
}
address@hidden> cat bar.cpp
#include <memory>
void bar() {
std::auto_ptr<int> p1(new int);
}
build steps:
g++ -fPIC -o foo.o -c foo.cpp
g++ -fPIC -o bar.o -c bar.cpp
# now the partial link step ...
gnu-ld -r -o partial.o foo.o bar.o
g++ -c -o main.o main.cpp
# now the final link step fails ...
g++ -o demo main.o partial.o
# ... fails with an error message from the AIX linker:
ld: 0711-547 SEVERE ERROR: Object partial.o cannot be processed.
RLD address 0x10000364 for section 2 (.data) is
not contained in the section.
collect2: ld returned 12 exit status
version information:
g++ --version
g++ (GCC) 4.5.3
gnu-ld --version
GNU ld (GNU Binutils) 2.22.51.20111212
AIX Linker: ld -V
ld: LD 1.65.2.6 (2/24/09)
AIX OS: oslevel -s
5300-03-CSP-0000
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/13561] New: AIX link failure: RLD address not contained in section,
ka5427-536 at online dot de <=
- [Bug ld/13561] AIX link failure: RLD address not contained in section, ka5427-536 at online dot de, 2012/01/05
- [Bug ld/13561] AIX link failure: RLD address not contained in section, gingold at adacore dot com, 2012/01/05
- [Bug ld/13561] AIX link failure: RLD address not contained in section, ka5427-536 at online dot de, 2012/01/05
- [Bug ld/13561] AIX link failure: RLD address not contained in section, gingold at adacore dot com, 2012/01/06
- [Bug ld/13561] AIX link failure: RLD address not contained in section, ka5427-536 at online dot de, 2012/01/06
- [Bug ld/13561] AIX link failure: RLD address not contained in section, ka5427-536 at online dot de, 2012/01/07