diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2014-12-06 16:35:18 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2014-12-06 16:35:18 +0100 |
commit | d924db559be94e668253a272f70870c85aecc60e (patch) | |
tree | edba5d6308cf015a64370790ef99ed31fe20cfbe /bfd/cpu-visium.c | |
parent | 1945cfa59de0a6093011891e1974ac2b6d25658f (diff) | |
download | gdb-d924db559be94e668253a272f70870c85aecc60e.zip gdb-d924db559be94e668253a272f70870c85aecc60e.tar.gz gdb-d924db559be94e668253a272f70870c85aecc60e.tar.bz2 |
Add Visium support to bfd
bfd/
* config.bfd: Add Visium support.
* configure.ac: Likewise.
* configure: Regenerate.
* Makefile.am (ALL_MACHINES): Add cpu-visium.lo.
(ALL_MACHINES_CFILES): Add cpu-visium.c.
(BFD32_BACKENDS): Add elf32-visium.lo.
(BFD32_BACKENDS_CFILES): Add elf32-visium.c.
* Makefile.in: Regenerate.
* archures.c (DESCRIPTION): Add Visium support.
(bfd_visium_arch): Declare.
(bfd_archures_list): Add bfd_visium_arch.
* reloc.c: Add Visium relocations.
* targets.c (visium_elf32_vec): Declare.
(_bfd_target_vector): Add visium_elf32_vec.
* bfd-in2.h: Regenerate.
* libbfd.h: Likewise.
* cpu-visium.c: New file.
* elf32-visium.c: Likewise.
* po/SRC-POTFILES.in: Regenerate.
include/elf/
* common.h (EM_VISIUM): Define.
* visium.h: New file.
Diffstat (limited to 'bfd/cpu-visium.c')
-rw-r--r-- | bfd/cpu-visium.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bfd/cpu-visium.c b/bfd/cpu-visium.c new file mode 100644 index 0000000..011bc40 --- /dev/null +++ b/bfd/cpu-visium.c @@ -0,0 +1,41 @@ +/* BFD support for the Visium processor. + + Copyright (C) 2003-2014 Free Software Foundation, Inc. + + This file is part of BFD, the Binary File Descriptor library. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, + Boston, MA 02110-1301, USA. */ + +#include "sysdep.h" +#include "bfd.h" +#include "libbfd.h" + +const bfd_arch_info_type bfd_visium_arch = +{ + 32, /* bits per word */ + 32, /* bits per address */ + 8, /* bits per byte */ + bfd_arch_visium, /* architecture */ + bfd_mach_visium, /* machine */ + "visium", /* architecture name */ + "visium", /* printable name */ + 2, /* section align power */ + TRUE, /* the default ? */ + bfd_default_compatible, /* architecture comparison fn */ + bfd_default_scan, /* string to architecture convert fn */ + bfd_arch_default_fill, /* default fill */ + NULL /* next in list */ +}; |