C++ areas again

Peter Naulls peter at chocky.org
Mon Dec 6 07:29:00 PST 2004



Nick, we're seeing this in SuperTux:

Error: Size of common area 'C$$.gnu.linkonce.t._ZN6BadGuyD1Ev' in 'leveleditor.o' differs from definition in 'badguy.o' (240 != 134700560)
Error: Size of common area 'C$$.gnu.linkonce.t._ZN6PlayerD1Ev' in 'world.o' differs from definition in 'player.o' (240 != 135474712)
Error: Size of common area 'C$$.gnu.linkonce.t._ZNSt6vectorIP7SurfaceSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_' in 'tile.o' differs from definition in 'button.o' (912 != 134793208)
Error: Size of common area 'C$$.gnu.linkonce.t._ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_' in '/usr/src/gccsdk/arm-riscos-aof/gcc-3_4/libstdc/stage2/apcs32/arch3/unixlib/string-inst.o' differs from definition in 'level.o' (360 != 134948568)
Error: Size of common area 'C$$.gnu.linkonce.t._ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_ERKS6_S8_' in '/usr/src/gccsdk/arm-riscos-aof/gcc-3_4/libstdc/stage2/apcs32/arch3/unixlib/string-inst.o' differs from definition in 'level.o' (316 != 134948440)

Have we missed a patch, or is this some other badness?
I also wonder if our 'ld' should trying harder to demangle those names.


Roll on ELF.

-- 
Peter Naulls - peter at chocky.org        | http://www.chocky.org/
----------------------------------------------------------------------------
RISC OS C Programming                  | http://www.riscos.info/



More information about the gcc mailing list