Remove arch-specific coff headers

If we use IMAGE_FILE_MACHINE_AMD64 instead of AMD64MAGIC, we can avoid
including the arch-specific coff/x86_64 header.

Based on a patch from Maxim Kammerer <mk@dee.su>.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Jeremy Kerr 2012-08-10 15:51:03 +08:00
parent 1c8fac1fbe
commit e027b87cff
5 changed files with 2 additions and 134 deletions

View file

@ -37,7 +37,6 @@
#include <bfd.h>
#define DO_NOT_DEFINE_LINENO
#include "coff/x86_64.h"
#include "coff/external.h"
#include "coff/pe.h"