Coverage Report

Created: 2025-06-24 06:45

/src/binutils-gdb/include/elf/epiphany.h
Line
Count
Source (jump to first uncovered line)
1
/* Adapteva EPIPHANY ELF support for BFD.
2
   Copyright (C) 2009-2025 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.  */
27
783
START_RELOC_NUMBERS (elf_epiphany_reloc_type)
28
783
  RELOC_NUMBER (R_EPIPHANY_NONE,    0)
29
30
  /* Absolute address relocations.  */
31
8
  RELOC_NUMBER (R_EPIPHANY_8,       1)
32
8
  RELOC_NUMBER (R_EPIPHANY_16,      2)
33
12
  RELOC_NUMBER (R_EPIPHANY_32,      3)
34
35
  /* PC-relative relocations.  */
36
29
  RELOC_NUMBER (R_EPIPHANY_8_PCREL, 4)
37
10
  RELOC_NUMBER (R_EPIPHANY_16_PCREL,5)
38
1
  RELOC_NUMBER (R_EPIPHANY_32_PCREL,6)
39
40
  /* special forms for 8/24 bit branch displacements.  */
41
16
  RELOC_NUMBER (R_EPIPHANY_SIMM8,   7)
42
15
  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
41
  RELOC_NUMBER (R_EPIPHANY_HIGH, 9)
47
7
  RELOC_NUMBER (R_EPIPHANY_LOW,10)
48
49
  /* 11 bit signed immediate value.  */
50
0
  RELOC_NUMBER (R_EPIPHANY_SIMM11, 11)
51
  /* 11 bit magnitude addressing displacement.  */
52
33
  RELOC_NUMBER (R_EPIPHANY_IMM11, 12)
53
54
  /* 8 bit immediate for MOV.S R,IMM8.  */
55
4
  RELOC_NUMBER (R_EPIPHANY_IMM8, 13)
56
57
404
END_RELOC_NUMBERS(R_EPIPHANY_max)
58
59
#endif /* _ELF_EPIPHANY_H */