diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-05-24 21:52:38 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-05-24 21:52:38 +0000 |
commit | e8490c2866c84e3b803a7330a3b378dc9f760507 (patch) | |
tree | 483d3a5e6bc9c9da265fd74c8cead32936a8ff6e /bfd | |
parent | a8d5d78a3177c2c1eddabca95d8dbf82e545015d (diff) | |
download | binutils-redhat-e8490c2866c84e3b803a7330a3b378dc9f760507.tar.gz |
* netbsd-core.c: Correctly indent section that sets architecture
from machine ID.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/netbsd-core.c | 100 |
2 files changed, 54 insertions, 51 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 23ed4c8a62..dab90b4b6e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2004-05-24 Mark Kettenis <kettenis@gnu.org> - + + * netbsd-core.c: Correctly indent section that sets architecture + from machine ID. + From Miod Vallat <miod@online.fr>: * m88kopenbsd.c: New file. * targets.c (m88k_openbsd_vec): New. diff --git a/bfd/netbsd-core.c b/bfd/netbsd-core.c index 3e6caaeaeb..b7dfcd65f7 100644 --- a/bfd/netbsd-core.c +++ b/bfd/netbsd-core.c @@ -166,56 +166,56 @@ netbsd_core_file_p (abfd) offset += coreseg.c_size; } - /* Set architecture from machine ID. */ - switch (CORE_GETMID (core)) - { - case M_ALPHA_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_alpha, 0); - break; - - case M_ARM6_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_arm, bfd_mach_arm_3); - break; - - case M_X86_64_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_x86_64); - break; - - case M_386_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_i386_i386); - break; - - case M_68K_NETBSD: - case M_68K4K_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_m68k, 0); - break; - - case M_88K_OPENBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_m88k, 0); - break; - - case M_HPPA_OPENBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_hppa, bfd_mach_hppa11); - break; - - case M_POWERPC_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_powerpc, bfd_mach_ppc); - break; - - case M_SPARC_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc); - break; - - case M_SPARC64_NETBSD: - case M_SPARC64_OPENBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc_v9); - break; - - case M_VAX_NETBSD: - case M_VAX4K_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_vax, 0); - break; - } + /* Set architecture from machine ID. */ + switch (CORE_GETMID (core)) + { + case M_ALPHA_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_alpha, 0); + break; + + case M_ARM6_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_arm, bfd_mach_arm_3); + break; + + case M_X86_64_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_x86_64); + break; + + case M_386_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_i386_i386); + break; + + case M_68K_NETBSD: + case M_68K4K_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_m68k, 0); + break; + + case M_88K_OPENBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_m88k, 0); + break; + + case M_HPPA_OPENBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_hppa, bfd_mach_hppa11); + break; + + case M_POWERPC_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_powerpc, bfd_mach_ppc); + break; + + case M_SPARC_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc); + break; + + case M_SPARC64_NETBSD: + case M_SPARC64_OPENBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc_v9); + break; + + case M_VAX_NETBSD: + case M_VAX4K_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_vax, 0); + break; + } /* OK, we believe you. You're a core file (sure, sure). */ return abfd->xvec; |