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

Subversion Repositories open8_urisc

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

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

Line No. Rev Author Line
1 17 khays
/* OR1K ELF support for BFD. Derived from ppc.h.
2
   Copyright (C) 2002, 2010 Free Software Foundation, Inc.
3
   Contributed by Ivan Guzvinec  <ivang@opencores.org>
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
19
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20
   MA 02110-1301, USA.  */
21
 
22
#ifndef _ELF_OR1K_H
23
#define _ELF_OR1K_H
24
 
25
#include "elf/reloc-macros.h"
26
 
27
/* Relocations.  */
28
START_RELOC_NUMBERS (elf_or32_reloc_type)
29
  RELOC_NUMBER (R_OR32_NONE, 0)
30
  RELOC_NUMBER (R_OR32_32, 1)
31
  RELOC_NUMBER (R_OR32_16, 2)
32
  RELOC_NUMBER (R_OR32_8, 3)
33
  RELOC_NUMBER (R_OR32_CONST, 4)
34
  RELOC_NUMBER (R_OR32_CONSTH, 5)
35
  RELOC_NUMBER (R_OR32_JUMPTARG, 6)
36
  RELOC_NUMBER (R_OR32_GNU_VTENTRY, 7)
37
  RELOC_NUMBER (R_OR32_GNU_VTINHERIT, 8)
38
END_RELOC_NUMBERS (R_OR32_max)
39
 
40
/* Four bit OR32 machine type field.  */
41
#define EF_OR32_MACH             0x0000000f
42
 
43
/* Various CPU types.  */
44
#define E_OR32_MACH_BASE         0x00000000
45
#define E_OR32_MACH_UNUSED1      0x00000001
46
#define E_OR32_MACH_UNUSED2      0x00000002
47
#define E_OR32_MACH_UNUSED4      0x00000003
48
 
49
/* Processor specific section headers, sh_type field */
50
#define SHT_ORDERED             SHT_HIPROC      /* Link editor is to sort the \
51
                                                   entries in this section \
52
                                                   based on the address \
53
                                                   specified in the associated \
54
                                                   symbol table entry.  */
55
 
56
#endif /* _ELF_OR1K_H */

powered by: WebSVN 2.1.0

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