Patch to detect invalid mergeable string sections
Alan Modra
amodra@bigpond.net.au
Thu Nov 1 07:11:00 GMT 2007
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
More information about the Binutils
mailing list