Initial revision
[binutils.git] / include / elf / sh.h
blob4a476679ab63c08282052451121535a4d2e4964e
1 /* SH ELF support for BFD.
2 Copyright (C) 1998 Free Software Foundation, Inc.
4 This file is part of BFD, the Binary File Descriptor library.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software Foundation,
18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20 #ifndef _ELF_SH_H
21 #define _ELF_SH_H
23 #include "elf/reloc-macros.h"
25 /* Relocations. */
26 /* Relocations 25ff are GNU extensions.
27 25..33 are used for relaxation and use the same constants as COFF uses. */
28 START_RELOC_NUMBERS (elf_sh_reloc_type)
29 RELOC_NUMBER (R_SH_NONE, 0)
30 RELOC_NUMBER (R_SH_DIR32, 1)
31 RELOC_NUMBER (R_SH_REL32, 2)
32 RELOC_NUMBER (R_SH_DIR8WPN, 3)
33 RELOC_NUMBER (R_SH_IND12W, 4)
34 RELOC_NUMBER (R_SH_DIR8WPL, 5)
35 RELOC_NUMBER (R_SH_DIR8WPZ, 6)
36 RELOC_NUMBER (R_SH_DIR8BP, 7)
37 RELOC_NUMBER (R_SH_DIR8W, 8)
38 RELOC_NUMBER (R_SH_DIR8L, 9)
39 FAKE_RELOC (R_SH_FIRST_INVALID_RELOC, 10)
40 FAKE_RELOC (R_SH_LAST_INVALID_RELOC, 24)
41 RELOC_NUMBER (R_SH_SWITCH16, 25)
42 RELOC_NUMBER (R_SH_SWITCH32, 26)
43 RELOC_NUMBER (R_SH_USES, 27)
44 RELOC_NUMBER (R_SH_COUNT, 28)
45 RELOC_NUMBER (R_SH_ALIGN, 29)
46 RELOC_NUMBER (R_SH_CODE, 30)
47 RELOC_NUMBER (R_SH_DATA, 31)
48 RELOC_NUMBER (R_SH_LABEL, 32)
49 RELOC_NUMBER (R_SH_SWITCH8, 33)
50 RELOC_NUMBER (R_SH_GNU_VTINHERIT, 34)
51 RELOC_NUMBER (R_SH_GNU_VTENTRY, 35)
52 EMPTY_RELOC (R_SH_max)
53 END_RELOC_NUMBERS
55 #endif