PR 12887, invalid .eh_frame ld segfault

Alan Modra amodra@gmail.com
Wed Jun 15 02:11:00 GMT 2011


On Tue, Jun 14, 2011 at 06:14:39AM -0700, H.J. Lu wrote:
> On Tue, Jun 14, 2011 at 5:57 AM, Alan Modra <amodra@gmail.com> wrote:
> > It's amazing what people manage to feed ld.  This PR is about a
> > .eh_frame section with SHF_MERGE and SHF_STRINGS set.
> >
> >        PR ld/12887
> >        * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Check sec_info_type
> >        before doing anything.
> >        (_bfd_elf_discard_section_eh_frame): Likewise.
> >
> 
> Does linker issue any meaningful error/warning messages now?

Not for the testcase in PR12887, and I don't think we should.  If we
start issuing warnings for crazy input it will lead to the expectation
that ld ought to warn for every possible combination of odd input that
doesn't "work" according to naive user expectation.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list