Coverage Report

Created: 2025-06-24 06:45

/src/binutils-gdb/include/elf/visium.h
Line
Count
Source (jump to first uncovered line)
1
/* Visium ELF support for BFD.
2
3
   Copyright (C) 2002-2025 Free Software Foundation, 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_VISIUM_H
22
#define _ELF_VISIUM_H
23
24
#include "elf/reloc-macros.h"
25
26
/* Processor specific flags for the ELF header e_flags field.  */
27
464
#define EF_VISIUM_ARCH_MCM   0x01
28
186
#define EF_VISIUM_ARCH_MCM24 0x02
29
464
#define EF_VISIUM_ARCH_GR6   0x04
30
31
/* Relocations.  */
32
63.9k
START_RELOC_NUMBERS (elf_visium_reloc_type)
33
63.9k
  RELOC_NUMBER (R_VISIUM_NONE, 0)
34
952
  RELOC_NUMBER (R_VISIUM_8, 1)
35
960
  RELOC_NUMBER (R_VISIUM_16, 2)
36
885
  RELOC_NUMBER (R_VISIUM_32, 3)
37
1.12k
  RELOC_NUMBER (R_VISIUM_8_PCREL, 4)
38
911
  RELOC_NUMBER (R_VISIUM_16_PCREL, 5)
39
346
  RELOC_NUMBER (R_VISIUM_32_PCREL, 6)
40
609
  RELOC_NUMBER (R_VISIUM_PC16, 7)
41
763
  RELOC_NUMBER (R_VISIUM_HI16, 8)
42
1.00k
  RELOC_NUMBER (R_VISIUM_LO16, 9)
43
685
  RELOC_NUMBER (R_VISIUM_IM16, 10)
44
508
  RELOC_NUMBER (R_VISIUM_HI16_PCREL, 11)
45
508
  RELOC_NUMBER (R_VISIUM_LO16_PCREL, 12)
46
382
  RELOC_NUMBER (R_VISIUM_IM16_PCREL, 13)
47
351
  RELOC_NUMBER (R_VISIUM_GNU_VTINHERIT, 200)
48
899
  RELOC_NUMBER (R_VISIUM_GNU_VTENTRY, 201)
49
32.3k
END_RELOC_NUMBERS(R_VISIUM_max)
50
51
#endif /* _ELF_VISIUM_H */