discarded sections problems with g++-3.4

Bug #32583 reported by Paolo Borelli
4
Affects Status Importance Assigned to Milestone
binutils
New
Undecided
Unassigned

Bug Description

I have a linking problems with the current binutils in dapper (binutils 2.16.1cvs20060117-1ubuntu1) and g++-3.4 [1].

After much head scratching I found that downgrading binutils to 2.15-5ubuntu2.2 fixes this issue, so it must have been introduced in newer versions.

[1] The project I am trying to compile doesn't work yet with g++ 4

Here is the output:

Making all in socmon
make[3]: Entering directory `/home/paolo/newmp4free/mp4free/trunk/kernel/lib/socmon'
/bin/sh ../../libtool --tag=CXX --mode=link g++-3.4 -g -O2 -L/usr/local/systemc-2.1/lib-linux -o libsocmon.la -rpath /usr/local/lib socplug.lo jview.lo sciapi.lo soc_main.lo viewSrv.lo smonFatal.lo cruelWorld.lo socUtil.lo stable.lo sgConfig.lo sgAttach.lo probeStream.lo defaultComponents.lo log.lo util.lo socPort.lo doException.lo wire.lo -lsystemc
g++-3.4 -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/3.4.6/crtbeginS.o .libs/socplug.o .libs/jview.o .libs/sciapi.o .libs/soc_main.o .libs/viewSrv.o .libs/smonFatal.o .libs/cruelWorld.o .libs/socUtil.o .libs/stable.o .libs/sgConfig.o .libs/sgAttach.o .libs/probeStream.o .libs/defaultComponents.o .libs/log.o .libs/util.o .libs/socPort.o .libs/doException.o .libs/wire.o -L/usr/local/systemc-2.1/lib-linux -lsystemc -L/usr/lib/gcc/i486-linux-gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/3.4.6/crtendS.o /usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/crtn.o -Wl,-soname -Wl,libsocmon.so.0 -o .libs/libsocmon.so.0.0.0
`.L11493' referenced in section `.rodata' of .libs/viewSrv.o: defined in discarded section `.gnu.linkonce.t._ZN11probe_valueIbE10checkBreakEv' of .libs/viewSrv.o
`.L11496' referenced in section `.rodata' of .libs/viewSrv.o: defined in discarded section `.gnu.linkonce.t._ZN11probe_valueIbE10checkBreakEv' of .libs/viewSrv.o
`.L11498' referenced in section `.rodata' of .libs/viewSrv.o: defined in discarded section `.gnu.linkonce.t._ZN11probe_valueIbE10checkBreakEv' of .libs/viewSrv.o
`.L11500' referenced in section `.rodata' of .libs/viewSrv.o: defined in discarded section `.gnu.linkonce.t._ZN11probe_valueIbE10checkBreakEv' of .libs/viewSrv.o
`.L11502' referenced in section `.rodata' of .libs/viewSrv.o: defined in discarded section `.gnu.linkonce.t._ZN11probe_valueIbE10checkBreakEv' of .libs/viewSrv.o
`.L11504' referenced in section `.rodata' of .libs/viewSrv.o: defined in discarded section `.gnu.linkonce.t._ZN11probe_valueIbE10checkBreakEv' of .libs/viewSrv.o
`.L11506' referenced in section `.rodata' of .libs/viewSrv.o: defined in discarded section `.gnu.linkonce.t._ZN11probe_valueIbE10checkBreakEv' of .libs/viewSrv.o
collect2: ld returned 1 exit status
make[3]: *** [libsocmon.la] Error 1
make[3]: Leaving directory `/home/paolo/newmp4free/mp4free/trunk/kernel/lib/socmon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/paolo/newmp4free/mp4free/trunk/kernel/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/paolo/newmp4free/mp4free/trunk/kernel'
make: *** [all-recursive] Error 1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.