OLD | NEW |
1 /* BFD support for the ARM processor | 1 /* BFD support for the ARM processor |
2 Copyright 1994, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, | 2 Copyright 1994, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, |
3 2009, 2010 Free Software Foundation, Inc. | 3 2009, 2010 Free Software Foundation, Inc. |
4 Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org) | 4 Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org) |
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 return TRUE; | 117 return TRUE; |
118 | 118 |
119 /* Finally check for the default architecture. */ | 119 /* Finally check for the default architecture. */ |
120 if (strcasecmp (string, "arm") == 0) | 120 if (strcasecmp (string, "arm") == 0) |
121 return info->the_default; | 121 return info->the_default; |
122 | 122 |
123 return FALSE; | 123 return FALSE; |
124 } | 124 } |
125 | 125 |
126 #define N(number, print, default, next) \ | 126 #define N(number, print, default, next) \ |
127 { 32, 32, 8, bfd_arch_arm, number, "arm", print, 4, default, compatible, scan,
next } | 127 { 32, 32, 8, bfd_arch_arm, number, "arm", print, 4, default, compatible, \ |
| 128 scan, bfd_arch_default_fill, next } |
128 | 129 |
129 static const bfd_arch_info_type arch_info_struct[] = | 130 static const bfd_arch_info_type arch_info_struct[] = |
130 { | 131 { |
131 N (bfd_mach_arm_2, "armv2", FALSE, & arch_info_struct[1]), | 132 N (bfd_mach_arm_2, "armv2", FALSE, & arch_info_struct[1]), |
132 N (bfd_mach_arm_2a, "armv2a", FALSE, & arch_info_struct[2]), | 133 N (bfd_mach_arm_2a, "armv2a", FALSE, & arch_info_struct[2]), |
133 N (bfd_mach_arm_3, "armv3", FALSE, & arch_info_struct[3]), | 134 N (bfd_mach_arm_3, "armv3", FALSE, & arch_info_struct[3]), |
134 N (bfd_mach_arm_3M, "armv3m", FALSE, & arch_info_struct[4]), | 135 N (bfd_mach_arm_3M, "armv3m", FALSE, & arch_info_struct[4]), |
135 N (bfd_mach_arm_4, "armv4", FALSE, & arch_info_struct[5]), | 136 N (bfd_mach_arm_4, "armv4", FALSE, & arch_info_struct[5]), |
136 N (bfd_mach_arm_4T, "armv4t", FALSE, & arch_info_struct[6]), | 137 N (bfd_mach_arm_4T, "armv4t", FALSE, & arch_info_struct[6]), |
137 N (bfd_mach_arm_5, "armv5", FALSE, & arch_info_struct[7]), | 138 N (bfd_mach_arm_5, "armv5", FALSE, & arch_info_struct[7]), |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 else if (name[1] == 'm' || name[1] == 'f' || name[1] == 'p') | 425 else if (name[1] == 'm' || name[1] == 'f' || name[1] == 'p') |
425 type &= BFD_ARM_SPECIAL_SYM_TYPE_TAG; | 426 type &= BFD_ARM_SPECIAL_SYM_TYPE_TAG; |
426 else if (name[1] >= 'a' && name[1] <= 'z') | 427 else if (name[1] >= 'a' && name[1] <= 'z') |
427 type &= BFD_ARM_SPECIAL_SYM_TYPE_OTHER; | 428 type &= BFD_ARM_SPECIAL_SYM_TYPE_OTHER; |
428 else | 429 else |
429 return FALSE; | 430 return FALSE; |
430 | 431 |
431 return (type != 0 && (name[2] == 0 || name[2] == '.')); | 432 return (type != 0 && (name[2] == 0 || name[2] == '.')); |
432 } | 433 } |
433 | 434 |
OLD | NEW |