This is the mail archive of the
mailing list for the binutils project.
Re: PR 12887, invalid .eh_frame ld segfault
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 <firstname.lastname@example.org> 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.
Australia Development Lab, IBM