[PATCH users/roland/tolerant-elf_object_p] Don't let a single unrecognized ELF section break target matching.

Alan Modra amodra@gmail.com
Mon Aug 3 02:11:57 GMT 2020


On Wed, Jul 29, 2020 at 11:31:48AM -0700, Roland McGrath via Binutils wrote:
>         * elfcode.h (elf_object_p): Ignore errors from individual
>         bfd_section_from_shdr calls so a novel section type appearing in
>         the input doesn't break target-matching.

There is target specific matching in bfd_section_from_shdr (see
occurrences of bed).  Have you checked that there is no target variant
where you would actually want a bfd_section_from_shdr failure in order
to select a better target variant?  This will require some analysis
of the code rather than just running the testsuite over multiple
targets.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list