This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cvs binutils+gcc4.0 build fail


On Tue, Mar 29, 2005 at 07:09:31PM +0000, Thorsten Glaser wrote:
> tg@odem:/home/tg $ g++ -static x.cc
> /usr/bin/ld: `.gnu.linkonce.t._ZNKSt5ctypeIcE13_M_widen_initEv' referenced in section `.data' of /usr/lib/libstdc++.a(locale-inst.o): defined in discarded section `.gnu.linkonce.t._ZNKSt5ctypeIcE13_M_widen_initEv' of /usr/lib/libstdc++.a(locale-inst.o)

This is a gcc problem.  Some part of _ZNKSt5ctypeIcE13_M_widen_initEv is
not being emitted to linkonce sections, but instead finds its way into
.data.  This leaves a dangling reference when the linkonce sections are
removed due to some other copy of _ZNKSt5ctypeIcE13_M_widen_initEv
already being present.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]