source: trunk/libs/newlib/src/include/elf/epiphany.h @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 2.0 KB
Line 
1/* Adapteva EPIPHANY ELF support for BFD.
2   Copyright (C) 2009, 2011 Free Software Foundation, Inc.
3   Contributed by Embecosm on behalf of Adapteva, Inc.
4
5   This file is part of BFD, the Binary File Descriptor library.
6
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 3 of the License, or
10   (at your option) any later version.
11
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.
16
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 Foundation,
19   Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
20
21#ifndef _ELF_EPIPHANY_H
22#define _ELF_EPIPHANY_H
23
24#include "elf/reloc-macros.h"
25
26/* Relocations.  */
27START_RELOC_NUMBERS (elf_epiphany_reloc_type)
28  RELOC_NUMBER (R_EPIPHANY_NONE,    0)
29
30  /* Absolute address relocations.  */
31  RELOC_NUMBER (R_EPIPHANY_8,       1)
32  RELOC_NUMBER (R_EPIPHANY_16,      2)
33  RELOC_NUMBER (R_EPIPHANY_32,      3)
34
35  /* PC-relative relocations.  */
36  RELOC_NUMBER (R_EPIPHANY_8_PCREL, 4)
37  RELOC_NUMBER (R_EPIPHANY_16_PCREL,5)
38  RELOC_NUMBER (R_EPIPHANY_32_PCREL,6)
39
40  /* special forms for 8/24 bit branch displacements.  */
41  RELOC_NUMBER (R_EPIPHANY_SIMM8,   7)
42  RELOC_NUMBER (R_EPIPHANY_SIMM24,  8)
43
44  /* HIGH and LOW relocations taking part of a 32 bit address and
45     depositing it into the IMM16 field of a destination.  */
46  RELOC_NUMBER (R_EPIPHANY_HIGH, 9)
47  RELOC_NUMBER (R_EPIPHANY_LOW,10)
48
49  /* 11 bit signed immediate value.  */
50  RELOC_NUMBER (R_EPIPHANY_SIMM11, 11)
51  /* 11 bit magnitude addressing displacement.  */
52  RELOC_NUMBER (R_EPIPHANY_IMM11, 12)
53
54  /* 8 bit immediate for MOV.S R,IMM8.  */
55  RELOC_NUMBER (R_EPIPHANY_IMM8, 13)
56
57END_RELOC_NUMBERS(R_EPIPHANY_max)
58
59#endif /* _ELF_EPIPHANY_H */
Note: See TracBrowser for help on using the repository browser.