This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [Proposed binutils PATCH] Re: Diagnosing an intricate C++ problem
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: [Proposed binutils PATCH] Re: Diagnosing an intricate C++ problem
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Sun, 3 Sep 2000 00:54:55 +0200 (CEST)
- cc: rittle at rsch dot comm dot mot dot com, gcc-patches at gcc dot gnu dot org, binutils at sources dot redhat dot com
On Sat, 2 Sep 2000, H . J . Lu wrote:
>>> 2000-07-25 Loren J. Rittle <ljrittle@acm.org>
>>>
>>> * ldlang.c (section_already_linked): Implement check for
>>> the SEC_LINK_DUPLICATES_SAME_CONTENTS case.
>>>
>>> 2000-07-25 Loren J. Rittle <ljrittle@acm.org>
>>>
>>> * elf.c (_bfd_elf_make_section_from_shdr): Enable the checking
>>> of the section contents.
>> I built binutils 2.10 with these two patches and, on top of that,
>> GCC mainline on FreeBSD 4.1.
> I cannot duplicated it under Linux with the Linux binutils 2.10.0.24.
Did you apply those two patches?
Loren enhanced binutils to detect redundant/identical sections which
actually differ. This is incredibly helpful to detect bugs in C++
programs, but unfortunatly the current patches cause "false" positives
(which are not really false, just undesirable).
ld *should* warn for the example I have posted at
<http://gcc.gnu.org/ml/gcc/2000-07/msg00769.html> (Also see
<http://gcc.gnu.org/ml/gcc-patches/2000-07/msg01019.html>.)
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/