This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16625] Discarded Linkonce sections in .rodata
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Mar 2007 15:27:37 -0000
- Subject: [Bug c++/16625] Discarded Linkonce sections in .rodata
- References: <bug-16625-8878@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #43 from hjl at lucon dot org 2007-03-06 15:27 -------
(In reply to comment #42)
> Created an attachment (id=13152)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13152&action=view) [edit]
> Testcase (generated assembly files from gcc 4.1.1)
>
I got
bash-3.1$ readelf -S -N fzotl.o | grep ZN10otl_streamlsEPKc
[257] .gnu.linkonce.t._ZN10otl_streamlsEPKc
[258] .rel.gnu.linkonce.t._ZN10otl_streamlsEPKc
bash-3.1$ readelf -S -N fzconfig.o | grep ZN10otl_streamlsEPKc
[338] .gnu.linkonce.t._ZN10otl_streamlsEPKc
[339] .rel.gnu.linkonce.t._ZN10otl_streamlsEPKc
[340] .gnu.linkonce.r._ZN10otl_streamlsEPKc
[341] .rel.gnu.linkonce.r._ZN10otl_streamlsEPKc
bash-3.1$ readelf -g fzotl.o fzconfig.o
File: fzotl.o
There are no section groups in this file.
File: fzconfig.o
There are no section groups in this file.
bash-3.1$
It means your gcc 4.1.1 was built with a very old binutils and it doesn't
support COMDAT group, which is needed to fix this bug. You have 2
choices:
1. Rebuild gcc 4.1.1 with the current Linux binutils.
2. Use a different Linux distribution with a proper gcc 4.1. FC6 is
OK.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625