OLD | NEW |
1 /* BFD library support routines for architectures. | 1 /* BFD library support routines for architectures. |
2 Copyright 1990, 1991, 1992, 1993, 1994, 1997, 1998, 2000, 2001, 2002, | 2 Copyright 1990, 1991, 1992, 1993, 1994, 1997, 1998, 2000, 2001, 2002, |
3 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 3 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. |
4 Hacked by Steve Chamberlain of Cygnus Support. | 4 Hacked by Steve Chamberlain of Cygnus Support. |
5 | 5 |
6 This file is part of BFD, the Binary File Descriptor library. | 6 This file is part of BFD, the Binary File Descriptor library. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "sysdep.h" | 23 #include "sysdep.h" |
24 #include "bfd.h" | 24 #include "bfd.h" |
25 #include "libbfd.h" | 25 #include "libbfd.h" |
26 #include "opcode/m68k.h" | 26 #include "opcode/m68k.h" |
27 | 27 |
28 static const bfd_arch_info_type * | 28 static const bfd_arch_info_type * |
29 bfd_m68k_compatible (const bfd_arch_info_type *a, | 29 bfd_m68k_compatible (const bfd_arch_info_type *a, |
30 const bfd_arch_info_type *b); | 30 const bfd_arch_info_type *b); |
31 | 31 |
32 #define N(name, print,d,next) \ | 32 #define N(name, print,d,next) \ |
33 { 32, 32, 8, bfd_arch_m68k, name, "m68k",print,2,d,bfd_m68k_compatible,bfd_defa
ult_scan, next, } | 33 { 32, 32, 8, bfd_arch_m68k, name, "m68k",print,2,d,bfd_m68k_compatible, \ |
| 34 bfd_default_scan, bfd_arch_default_fill, next, } |
34 | 35 |
35 static const bfd_arch_info_type arch_info_struct[] = | 36 static const bfd_arch_info_type arch_info_struct[] = |
36 { | 37 { |
37 N(bfd_mach_m68000, "m68k:68000", FALSE, &arch_info_struct[1]), | 38 N(bfd_mach_m68000, "m68k:68000", FALSE, &arch_info_struct[1]), |
38 N(bfd_mach_m68008, "m68k:68008", FALSE, &arch_info_struct[2]), | 39 N(bfd_mach_m68008, "m68k:68008", FALSE, &arch_info_struct[2]), |
39 N(bfd_mach_m68010, "m68k:68010", FALSE, &arch_info_struct[3]), | 40 N(bfd_mach_m68010, "m68k:68010", FALSE, &arch_info_struct[3]), |
40 N(bfd_mach_m68020, "m68k:68020", FALSE, &arch_info_struct[4]), | 41 N(bfd_mach_m68020, "m68k:68020", FALSE, &arch_info_struct[4]), |
41 N(bfd_mach_m68030, "m68k:68030", FALSE, &arch_info_struct[5]), | 42 N(bfd_mach_m68030, "m68k:68030", FALSE, &arch_info_struct[5]), |
42 N(bfd_mach_m68040, "m68k:68040", FALSE, &arch_info_struct[6]), | 43 N(bfd_mach_m68040, "m68k:68040", FALSE, &arch_info_struct[6]), |
43 N(bfd_mach_m68060, "m68k:68060", FALSE, &arch_info_struct[7]), | 44 N(bfd_mach_m68060, "m68k:68060", FALSE, &arch_info_struct[7]), |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 return bfd_lookup_arch (a->arch, | 265 return bfd_lookup_arch (a->arch, |
265 bfd_m68k_features_to_mach (fido_a | m68881)); | 266 bfd_m68k_features_to_mach (fido_a | m68881)); |
266 } | 267 } |
267 | 268 |
268 return bfd_lookup_arch (a->arch, bfd_m68k_features_to_mach (features)); | 269 return bfd_lookup_arch (a->arch, bfd_m68k_features_to_mach (features)); |
269 } | 270 } |
270 else | 271 else |
271 /* They are incompatible. */ | 272 /* They are incompatible. */ |
272 return NULL; | 273 return NULL; |
273 } | 274 } |
OLD | NEW |