This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Patch to detect invalid mergeable string sections
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 1 Nov 2007 17:41:11 +1030
- Subject: Re: Patch to detect invalid mergeable string sections
- References: <Pine.LNX.4.64.0710301609020.7201@digraph.polyomino.org.uk> <20071030225501.GF5706@bubble.grove.modra.org> <Pine.LNX.4.64.0710311806580.31492@digraph.polyomino.org.uk>
On Wed, Oct 31, 2007 at 06:07:56PM +0000, Joseph S. Myers wrote:
> bfd:
> 2007-10-31 Joseph Myers <joseph@codesourcery.com>
>
> * merge.c (sec_merge_hash_lookup): Add parameter sec_end. Check
> for unterminated strings. All callers changed.
> (record_section): Add parameter abfd. Give error message for
> unterminated strings.
> (_bfd_merge_sections): Update call to record_section.
> (_bfd_write_merged_section, _bfd_merged_section_offset): Handle
> NULL secinfo from merge failures.
>
> ld/testsuite:
> 2007-10-31 Joseph Myers <joseph@codesourcery.com>
>
> * ld-elf/merge3.d, ld-elf/merge3.s: New.
OK.
--
Alan Modra
Australia Development Lab, IBM