diff options
Diffstat (limited to 'gnu/usr.bin/binutils/include')
-rw-r--r-- | gnu/usr.bin/binutils/include/coff/alpha.h | 3 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/include/coff/ecoff.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/include/coff/alpha.h b/gnu/usr.bin/binutils/include/coff/alpha.h index b4466928905..438a8fca81d 100644 --- a/gnu/usr.bin/binutils/include/coff/alpha.h +++ b/gnu/usr.bin/binutils/include/coff/alpha.h @@ -14,7 +14,8 @@ struct external_filehdr { }; /* Magic numbers are defined in coff/ecoff.h. */ -#define ALPHA_ECOFF_BADMAG(x) ((x).f_magic!=ALPHA_MAGIC) +#define ALPHA_ECOFF_BADMAG(x) \ + ((x).f_magic != ALPHA_MAGIC && (x).f_magic != ALPHA_MAGIC_BSD) /* The object type is encoded in the f_flags. */ #define F_ALPHA_OBJECT_TYPE_MASK 0x3000 diff --git a/gnu/usr.bin/binutils/include/coff/ecoff.h b/gnu/usr.bin/binutils/include/coff/ecoff.h index 3710c7329e5..9e4202e4757 100644 --- a/gnu/usr.bin/binutils/include/coff/ecoff.h +++ b/gnu/usr.bin/binutils/include/coff/ecoff.h @@ -24,6 +24,7 @@ /* Alpha magic numbers used in filehdr. */ #define ALPHA_MAGIC 0x183 +#define ALPHA_MAGIC_BSD 0x185 /* Magic numbers used in a.out header. */ #define ECOFF_AOUT_OMAGIC 0407 /* not demand paged (ld -N). */ |