OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [include/] [elf/] [open8.h] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 17 khays
/* Open8 ELF support for BFD.
2
   Copyright 1999, 2000, 2004, 2006, 2010, 2011  Free Software Foundation, Inc.
3
 
4
   Contributed by Kirk Hays, <khays@hayshaus.com>
5
 
6
   This file is part of BFD, the Binary File Descriptor library.
7
 
8
   This program is free software; you can redistribute it and/or modify
9
   it under the terms of the GNU General Public License as published by
10
   the Free Software Foundation; either version 3 of the License, or
11
   (at your option) any later version.
12
 
13
   This program is distributed in the hope that it will be useful,
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with this program; if not, write to the Free Software Foundation,
20
   Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
21
 
22
#ifndef _ELF_OPEN8_H
23
#define _ELF_OPEN8_H
24
 
25
#include "elf/reloc-macros.h"
26
 
27
/* Processor specific flags for the ELF header e_flags field.  */
28
#define EF_OPEN8_MACH 0x7F
29
 
30
/* If bit #7 is set, it is assumed that the elf file uses local symbols
31
   as reference for the relocations so that linker relaxation is possible.  */
32
#define EF_OPEN8_LINKRELAX_PREPARED 0x80
33
 
34
#define E_OPEN8_MACH_OPEN8_1 1
35
 
36
/* Relocations.  */
37
START_RELOC_NUMBERS (elf_open8_reloc_type)
38
RELOC_NUMBER (R_OPEN8_NONE,        0)
39
RELOC_NUMBER (R_OPEN8_32,          1)
40
RELOC_NUMBER (R_OPEN8_PCREL,       2)
41
RELOC_NUMBER (R_OPEN8_16,          3)
42
RELOC_NUMBER (R_OPEN8_LO8_LDI,     4)
43
RELOC_NUMBER (R_OPEN8_HI8_LDI,     5)
44
RELOC_NUMBER (R_OPEN8_LO8_LDI_NEG, 6)
45
RELOC_NUMBER (R_OPEN8_HI8_LDI_NEG, 7)
46
RELOC_NUMBER (R_OPEN8_CALL,        8)
47
RELOC_NUMBER (R_OPEN8_8,           9)
48
END_RELOC_NUMBERS (R_OPEN8_max)
49
 
50
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.