fixed bash/dash/sh issue (Ubuntu)
[zpugcc/jano.git] / toolchain / binutils / include / elf / zpu.h
blobdfa88e4c59d0043f25d7a733f989ceb7dcd46c5a
1 /* ZPU ELF support for BFD.
2 Copyright 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Doug Evans, (dje@cygnus.com)
5 This file is part of BFD, the Binary File Descriptor library.
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 2 of the License, or
10 (at your option) any later version.
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.
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 /* This file holds definitions specific to the ZPU ELF ABI. */
23 #ifndef _ELF_ZPU_H
24 #define _ELF_ZPU_H
26 #include "elf/reloc-macros.h"
28 /* Relocations. */
30 START_RELOC_NUMBERS (elf_zpu_reloc_type)
31 RELOC_NUMBER (R_ZPU_NONE, 0)
32 RELOC_NUMBER (R_ZPU_32, 1)
33 RELOC_NUMBER (R_ZPU_8, 2)
34 RELOC_NUMBER (R_ZPU_16, 3)
35 RELOC_NUMBER (R_ZPU_8_PCREL, 4)
36 RELOC_NUMBER (R_ZPU_16_PCREL, 5)
37 RELOC_NUMBER (R_ZPU_24_PCREL, 6)
38 RELOC_NUMBER (R_ZPU_32_PCREL, 7)
39 RELOC_NUMBER (R_ZPU_IM_7_PCREL, 8)
40 RELOC_NUMBER (R_ZPU_IM_14_PCREL, 9)
41 RELOC_NUMBER (R_ZPU_IM_21_PCREL, 10)
42 RELOC_NUMBER (R_ZPU_IM_28_PCREL, 11)
43 RELOC_NUMBER (R_ZPU_IM_32_PCREL, 12)
44 RELOC_NUMBER (R_ZPU_IM_7, 13)
45 RELOC_NUMBER (R_ZPU_IM_14, 14)
46 RELOC_NUMBER (R_ZPU_IM_21, 15)
47 RELOC_NUMBER (R_ZPU_IM_28, 16)
48 RELOC_NUMBER (R_ZPU_IM_32, 17)
49 RELOC_NUMBER (R_ZPU_IM_14_NONRELAX, 18)
50 END_RELOC_NUMBERS (R_ZPU_max)
52 /* Processor specific flags for the ELF header e_flags field. */
54 /* ABI identification. */
55 #define EF_ZPU_ABI 0x00000000F
58 /* Four bit ZPU machine type field. */
60 #define EF_ZPU_MACH 0x00000001
62 /* Various CPU types. */
64 #define E_ZPU_MACH_ZPU 0
66 /* Leave bits 0xf0 alone in case we ever have more than 16 cpu types. */
69 #endif /* _ELF_ZPU_H */