This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Warn alternate ELF machine code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]