| 1 | /* BFD support for the Intel K1OM architecture. |
| 2 | Copyright 2011 |
| 3 | Free Software Foundation, Inc. |
| 4 | |
| 5 | This file is part of BFD, the Binary File Descriptor library. |
| 6 | |
| 7 | This program is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 3 of the License, or |
| 10 | (at your option) any later version. |
| 11 | |
| 12 | This program is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License |
| 18 | along with this program; if not, write to the Free Software |
| 19 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
| 20 | MA 02110-1301, USA. */ |
| 21 | |
| 22 | #include "sysdep.h" |
| 23 | #include "bfd.h" |
| 24 | #include "libbfd.h" |
| 25 | |
| 26 | extern void * bfd_arch_i386_short_nop_fill (bfd_size_type, bfd_boolean, |
| 27 | bfd_boolean); |
| 28 | |
| 29 | static const bfd_arch_info_type bfd_k1om_arch_intel_syntax = |
| 30 | { |
| 31 | 64, /* 64 bits in a word */ |
| 32 | 64, /* 64 bits in an address */ |
| 33 | 8, /* 8 bits in a byte */ |
| 34 | bfd_arch_k1om, |
| 35 | bfd_mach_k1om_intel_syntax, |
| 36 | "k1om:intel", |
| 37 | "k1om:intel", |
| 38 | 3, |
| 39 | TRUE, |
| 40 | bfd_default_compatible, |
| 41 | bfd_default_scan, |
| 42 | bfd_arch_i386_short_nop_fill, |
| 43 | 0 |
| 44 | }; |
| 45 | |
| 46 | const bfd_arch_info_type bfd_k1om_arch = |
| 47 | { |
| 48 | 64, /* 64 bits in a word */ |
| 49 | 64, /* 64 bits in an address */ |
| 50 | 8, /* 8 bits in a byte */ |
| 51 | bfd_arch_k1om, |
| 52 | bfd_mach_k1om, |
| 53 | "k1om", |
| 54 | "k1om", |
| 55 | 3, |
| 56 | TRUE, |
| 57 | bfd_default_compatible, |
| 58 | bfd_default_scan, |
| 59 | bfd_arch_i386_short_nop_fill, |
| 60 | &bfd_k1om_arch_intel_syntax |
| 61 | }; |