PR23652, Use symbols from debug bfd for _bfd_elf_find_function
[deliverable/binutils-gdb.git] / bfd / cpu-spu.c
CommitLineData
82704155 1/* Copyright (C) 2006-2019 Free Software Foundation, Inc.
e9f53129
AM
2
3 This file is part of BFD, the Binary File Descriptor library.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
cd123cb7 7 the Free Software Foundation; either version 3 of the License, or
e9f53129
AM
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
18
e9f53129 19#include "sysdep.h"
3db64b00 20#include "bfd.h"
e9f53129
AM
21#include "libbfd.h"
22
e9f53129
AM
23static const bfd_arch_info_type *
24spu_compatible (const bfd_arch_info_type *a, const bfd_arch_info_type *b)
25{
26 BFD_ASSERT (a->arch == bfd_arch_spu);
27 switch (b->arch)
28 {
29 default:
30 return NULL;
31 case bfd_arch_spu:
32 return bfd_default_compatible (a, b);
33 }
34 /*NOTREACHED*/
35}
36
aebcfb76 37const bfd_arch_info_type bfd_spu_arch =
e9f53129 38{
aebcfb76
NC
39 32, /* Bits in a word. */
40 32, /* Bits in an address. */
41 8, /* Bits in a byte. */
42 bfd_arch_spu, /* Architecture number. */
43 bfd_mach_spu, /* Machine number. */
44 "spu", /* Architecture name. */
45 "spu:256K", /* Printable name. */
46 3, /* Section alignment power. */
47 TRUE, /* Default machine. */
48 spu_compatible, /* The spu is only compatible with itself, see above. */
49 bfd_default_scan,
50 bfd_arch_default_fill,
51 NULL, /* Next -- there are none! */
52 0 /* Maximum offset of a reloc from the start of an insn. */
e9f53129 53};
This page took 0.691127 seconds and 4 git commands to generate.