relocs_compatible hook considered harmful
Alan Modra
amodra@bigpond.net.au
Thu Apr 24 07:19:00 GMT 2008
On Wed, Apr 23, 2008 at 10:09:15PM -0400, Daniel Jacobowitz wrote:
> Still... if a file is incompatible enough that we can't check its
> relocs, why're we telling the backend to process them anyway?
It boils down to whether an input file passes the particular backend
bfd_check_format_matches. For ELF, this is elf_object_p. If a
backend needs further restrictions for some reason, I guess it could
implement elf_backend_object_p.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list