g++: duplicate section has different size (only with -march=pentium4, mingw32)
Frédéric Bron
frederic.bron@m4x.org
Fri May 24 05:56:00 GMT 2013
The attached minimal example (untar, make) shows the following warning
while linking:
A.o: duplicate section `.data$_ZN6ObjectIdE3barE[__ZN6ObjectIdE3barE]'
has different size
A.o: duplicate section
`.data$_ZGVN6ObjectIdE3barE[__ZGVN6ObjectIdE3barE]' has different size
I cross compile using g++ 4.6.4 or 4.7.3 from linux x86_64 to i686-pc-mingw32.
I observe that this happens only with -march=pentium4.
Also when I remove #include <iostream> that I do not use, the warning
disappears. I cannot figure out what this means and if it is important
or not. I wonder if it is because I did something wrong while building
the cross compiler...
However, I observe the same warning while using the cygwin cross
compiler i686-w64-mingw32 4.5.3 so I suspect it is not my cross
compiler.
Any help would be welcome.
Regards,
Frédéric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: duplicate_section_has_different_size.tar.bz2
Type: application/x-bzip2
Size: 693 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20130524/cde2121c/attachment.bz2>
More information about the Gcc-help
mailing list