PATCH: Warn alternate ELF machine code

Nick Clifton nickc@redhat.com
Wed Apr 8 10:53:00 GMT 2009


Hi H.J.,

> This patch adds an option, --warn-alternate-em, to issue a warning if
> an object has alternate ELF machine code. 

What is the motivation for this feature ?

> +    info->callbacks->einfo
> +      (_("%P: warning: alternate ELF machine code (%d): %B\n"),
> +       ehdr->e_machine, abfd);

I think that the warning should be slightly more verbose.  Something like:

   warning: alternate ELF machine code found (%d) in %B, expecting %d

Cheers
   Nick



More information about the Binutils mailing list