X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bfd%2Fcpu-ft32.c;h=5b51b7abf239bfc69bfbb53bd0c2b118cb46433f;hb=refs%2Fheads%2Fsandbox%2Fvbarinov%2Ftizen_6_base;hp=230bc902fff0908562464a8b65258840ada23ea0;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=external%2Fbinutils.git diff --git a/bfd/cpu-ft32.c b/bfd/cpu-ft32.c index 230bc90..5b51b7a 100644 --- a/bfd/cpu-ft32.c +++ b/bfd/cpu-ft32.c @@ -1,5 +1,5 @@ /* BFD support for the ft32 processor. - Copyright (C) 2013-2016 Free Software Foundation, Inc. + Copyright (C) 2013-2019 Free Software Foundation, Inc. Written by FTDI (support@ftdichip.com) This file is part of BFD, the Binary File Descriptor library. @@ -23,19 +23,53 @@ #include "libbfd.h" +static const bfd_arch_info_type arch_info_struct[] = + { + { + 32, /* 32 bits in a word. */ + 32, /* 32 bits in an address. */ + 8, /* 8 bits in a byte. */ + bfd_arch_ft32, /* enum bfd_architecture arch. */ + bfd_mach_ft32, + "ft32", /* Arch name. */ + "ft32", /* Printable name. */ + 2, /* Unsigned int section alignment power. */ + FALSE, /* The one and only. */ + bfd_default_compatible, + bfd_default_scan, + bfd_arch_default_fill, + &arch_info_struct[1], + }, + { + 32, /* 32 bits in a word. */ + 32, /* 32 bits in an address. */ + 8, /* 8 bits in a byte. */ + bfd_arch_ft32, /* enum bfd_architecture arch. */ + bfd_mach_ft32b, + "ft32b", /* Arch name. */ + "ft32b", /* Printable name. */ + 2, /* Unsigned int section alignment power. */ + FALSE, /* The one and only. */ + bfd_default_compatible, + bfd_default_scan, + bfd_arch_default_fill, + 0, + }, + }; + const bfd_arch_info_type bfd_ft32_arch = { - 32, /* 32 bits in a word. */ - 32, /* 32 bits in an address. */ - 8, /* 8 bits in a byte. */ - bfd_arch_ft32, /* enum bfd_architecture arch. */ + 32, /* 32 bits in a word. */ + 32, /* 32 bits in an address. */ + 8, /* 8 bits in a byte. */ + bfd_arch_ft32, /* enum bfd_architecture arch. */ bfd_mach_ft32, - "ft32", /* Arch name. */ - "ft32", /* Printable name. */ - 2, /* Unsigned int section alignment power. */ - TRUE, /* The one and only. */ + "ft32", /* Arch name. */ + "ft32", /* Printable name. */ + 2, /* Unsigned int section alignment power. */ + TRUE, /* The one and only. */ bfd_default_compatible, bfd_default_scan, bfd_arch_default_fill, - 0, + arch_info_struct, };