Coverage Report

Created: 2025-06-24 06:45

/src/binutils-gdb/include/elf/pru.h
Line
Count
Source (jump to first uncovered line)
1
/* TI PRU ELF support for BFD.
2
   Copyright (C) 2014-2025 Free Software Foundation, Inc.
3
   Contributed by Dimitar Dimitrov <dimitar@dinux.eu>
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
23
/* This file holds definitions specific to the TI PRU ELF ABI.  Note
24
   that most of this is not actually implemented by BFD.  */
25
26
#ifndef _ELF_PRU_H
27
#define _ELF_PRU_H
28
29
#include "elf/reloc-macros.h"
30
31
78.0k
START_RELOC_NUMBERS (elf_pru_reloc_type)
32
78.0k
  RELOC_NUMBER (R_PRU_NONE,       0)
33
693
  RELOC_NUMBER (R_PRU_16_PMEM,        5)
34
433
  RELOC_NUMBER (R_PRU_U16_PMEMIMM,      6)
35
2.08k
  RELOC_NUMBER (R_PRU_BFD_RELOC_16,     8)
36
1.81k
  RELOC_NUMBER (R_PRU_U16,        9)
37
2.46k
  RELOC_NUMBER (R_PRU_32_PMEM,        10)
38
379
  RELOC_NUMBER (R_PRU_BFD_RELOC_32,     11)
39
259
  RELOC_NUMBER (R_PRU_S10_PCREL,      14)
40
431
  RELOC_NUMBER (R_PRU_U8_PCREL,       15)
41
271
  RELOC_NUMBER (R_PRU_LDI32,        18)
42
43
  /* Extensions required by GCC, or simply nice to have.  */
44
474
  RELOC_NUMBER (R_PRU_GNU_BFD_RELOC_8,      64)
45
417
  RELOC_NUMBER (R_PRU_GNU_DIFF8,      65)
46
360
  RELOC_NUMBER (R_PRU_GNU_DIFF16,     66)
47
492
  RELOC_NUMBER (R_PRU_GNU_DIFF32,     67)
48
397
  RELOC_NUMBER (R_PRU_GNU_DIFF16_PMEM,      68)
49
359
  RELOC_NUMBER (R_PRU_GNU_DIFF32_PMEM,      69)
50
2.34k
  RELOC_NUMBER (R_PRU_ILLEGAL,        70)
51
33.5k
END_RELOC_NUMBERS (R_PRU_maxext)
52
53
/* Processor-specific section flags.  */
54
55
#endif /* _ELF_PRU_H */