| OLD | NEW |
| 1 /* BFD support for the score processor | 1 /* BFD support for the score processor |
| 2 Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 2 Copyright 2006, 2007, 2008, 2009, 2012 Free Software Foundation, Inc. |
| 3 Contributed by | 3 Contributed by |
| 4 Brain.lin (brain.lin@sunplusct.com) | 4 Brain.lin (brain.lin@sunplusct.com) |
| 5 Mei Ligang (ligang@sunnorth.com.cn) | 5 Mei Ligang (ligang@sunnorth.com.cn) |
| 6 Pei-Lin Tsai (pltsai@sunplus.com) | 6 Pei-Lin Tsai (pltsai@sunplus.com) |
| 7 | 7 |
| 8 This file is part of BFD, the Binary File Descriptor library. | 8 This file is part of BFD, the Binary File Descriptor library. |
| 9 | 9 |
| 10 This program is free software; you can redistribute it and/or modify | 10 This program is free software; you can redistribute it and/or modify |
| 11 it under the terms of the GNU General Public License as published by | 11 it under the terms of the GNU General Public License as published by |
| 12 the Free Software Foundation; either version 3 of the License, or | 12 the Free Software Foundation; either version 3 of the License, or |
| 13 (at your option) any later version. | 13 (at your option) any later version. |
| 14 | 14 |
| 15 This program is distributed in the hope that it will be useful, | 15 This program is distributed in the hope that it will be useful, |
| 16 but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 GNU General Public License for more details. | 18 GNU General Public License for more details. |
| 19 | 19 |
| 20 You should have received a copy of the GNU General Public License | 20 You should have received a copy of the GNU General Public License |
| 21 along with this program; if not, write to the Free Software | 21 along with this program; if not, write to the Free Software |
| 22 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 22 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
| 23 MA 02110-1301, USA. */ | 23 MA 02110-1301, USA. */ |
| 24 | 24 |
| 25 #include "sysdep.h" |
| 25 #include "bfd.h" | 26 #include "bfd.h" |
| 26 #include "sysdep.h" | |
| 27 #include "libbfd.h" | 27 #include "libbfd.h" |
| 28 | 28 |
| 29 /* This routine is provided two arch_infos and works out which Score | 29 /* This routine is provided two arch_infos and works out which Score |
| 30 machine which would be compatible with both and returns a pointer | 30 machine which would be compatible with both and returns a pointer |
| 31 to its info structure. */ | 31 to its info structure. */ |
| 32 | 32 |
| 33 static const bfd_arch_info_type * | 33 static const bfd_arch_info_type * |
| 34 compatible (const bfd_arch_info_type * a, const bfd_arch_info_type * b) | 34 compatible (const bfd_arch_info_type * a, const bfd_arch_info_type * b) |
| 35 { | 35 { |
| 36 /* If a & b are for different architectures we can do nothing. */ | 36 /* If a & b are for different architectures we can do nothing. */ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 49 32, /* Bits in an address. */ \ | 49 32, /* Bits in an address. */ \ |
| 50 8, /* 8 bits in a byte. */ \ | 50 8, /* 8 bits in a byte. */ \ |
| 51 bfd_arch_score, \ | 51 bfd_arch_score, \ |
| 52 machine, /* Machine number. */ \ | 52 machine, /* Machine number. */ \ |
| 53 "score", /* Architecture name. */ \ | 53 "score", /* Architecture name. */ \ |
| 54 print, /* Printable name. */ \ | 54 print, /* Printable name. */ \ |
| 55 4, /* Section align power. */ \ | 55 4, /* Section align power. */ \ |
| 56 default, /* The default machine. */ \ | 56 default, /* The default machine. */ \ |
| 57 compatible, \ | 57 compatible, \ |
| 58 bfd_default_scan, \ | 58 bfd_default_scan, \ |
| 59 bfd_arch_default_fill, \ |
| 59 next \ | 60 next \ |
| 60 } | 61 } |
| 61 | 62 |
| 62 static const bfd_arch_info_type arch_info_struct[] = | 63 static const bfd_arch_info_type arch_info_struct[] = |
| 63 { | 64 { |
| 64 N (16, bfd_mach_score3, "score3", FALSE, NULL), | 65 N (16, bfd_mach_score3, "score3", FALSE, NULL), |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 const bfd_arch_info_type bfd_score_arch = | 68 const bfd_arch_info_type bfd_score_arch = |
| 68 N (16, bfd_mach_score7, "score7", TRUE, & arch_info_struct[0]); | 69 N (16, bfd_mach_score7, "score7", TRUE, & arch_info_struct[0]); |
| OLD | NEW |