From df24801a5f097731470ff8835f5c8de5eb2d3b77 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Sun, 6 Oct 1996 19:40:38 +0000 Subject: Alpha support based on Chris Demetriou's work --- gnu/usr.bin/binutils/bfd/ecoff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/usr.bin/binutils/bfd/ecoff.c') diff --git a/gnu/usr.bin/binutils/bfd/ecoff.c b/gnu/usr.bin/binutils/bfd/ecoff.c index 63fed728750..90928c7b463 100644 --- a/gnu/usr.bin/binutils/bfd/ecoff.c +++ b/gnu/usr.bin/binutils/bfd/ecoff.c @@ -209,6 +209,7 @@ _bfd_ecoff_set_arch_mach_hook (abfd, filehdr) break; case ALPHA_MAGIC: + case ALPHA_MAGIC_BSD: arch = bfd_arch_alpha; mach = 0; break; @@ -257,7 +258,8 @@ ecoff_get_magic (abfd) return bfd_big_endian (abfd) ? big : little; case bfd_arch_alpha: - return ALPHA_MAGIC; + return (abfd->xvec == &bsd_ecoffalpha_little_vec + ? ALPHA_MAGIC_BSD : ALPHA_MAGIC); default: abort (); -- cgit v1.2.3