1 |
1181 |
sfurman |
/* XSTORMY16 ELF support for BFD.
|
2 |
|
|
Copyright (C) 2001 Free Software Foundation, Inc.
|
3 |
|
|
|
4 |
|
|
This file is part of BFD, the Binary File Descriptor library.
|
5 |
|
|
|
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.
|
10 |
|
|
|
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.
|
15 |
|
|
|
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, Inc.,
|
18 |
|
|
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
19 |
|
|
|
20 |
|
|
#ifndef _ELF_XSTORMY16_H
|
21 |
|
|
#define _ELF_XSTORMY16_H
|
22 |
|
|
|
23 |
|
|
#include "elf/reloc-macros.h"
|
24 |
|
|
|
25 |
|
|
/* Relocations. */
|
26 |
|
|
START_RELOC_NUMBERS (elf_xstormy16_reloc_type)
|
27 |
|
|
RELOC_NUMBER (R_XSTORMY16_NONE, 0)
|
28 |
|
|
|
29 |
|
|
RELOC_NUMBER (R_XSTORMY16_32, 1)
|
30 |
|
|
RELOC_NUMBER (R_XSTORMY16_16, 2)
|
31 |
|
|
RELOC_NUMBER (R_XSTORMY16_8, 3)
|
32 |
|
|
RELOC_NUMBER (R_XSTORMY16_PC32, 4)
|
33 |
|
|
RELOC_NUMBER (R_XSTORMY16_PC16, 5)
|
34 |
|
|
RELOC_NUMBER (R_XSTORMY16_PC8, 6)
|
35 |
|
|
|
36 |
|
|
RELOC_NUMBER (R_XSTORMY16_REL_12, 7)
|
37 |
|
|
RELOC_NUMBER (R_XSTORMY16_24, 8)
|
38 |
|
|
RELOC_NUMBER (R_XSTORMY16_FPTR16, 9)
|
39 |
|
|
|
40 |
|
|
RELOC_NUMBER (R_XSTORMY16_GNU_VTINHERIT, 128)
|
41 |
|
|
RELOC_NUMBER (R_XSTORMY16_GNU_VTENTRY, 129)
|
42 |
|
|
END_RELOC_NUMBERS (R_XSTORMY16_max)
|
43 |
|
|
|
44 |
|
|
/* Define the data & instruction memory discriminator. In a linked
|
45 |
|
|
executable, an symbol should be deemed to point to an instruction
|
46 |
|
|
if ((address & XSTORMY16_INSN_MASK) == XSTORMY16_INSN_VALUE), and similarly
|
47 |
|
|
for the data space. See also `ld/emulparams/elf32xstormy16.sh'. */
|
48 |
|
|
#define XSTORMY16_DATA_MASK 0xffc00000
|
49 |
|
|
#define XSTORMY16_DATA_VALUE 0x00000000
|
50 |
|
|
#define XSTORMY16_INSN_MASK 0xffc00000
|
51 |
|
|
#define XSTORMY16_INSN_VALUE 0x00400000
|
52 |
|
|
|
53 |
|
|
#endif /* _ELF_XSTORMY16_H */
|