• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* List the relocation types for RISC-V.  -*- C -*-
2   This file is part of elfutils.
3
4   This file is free software; you can redistribute it and/or modify
5   it under the terms of either
6
7     * the GNU Lesser General Public License as published by the Free
8       Software Foundation; either version 3 of the License, or (at
9       your option) any later version
10
11   or
12
13     * the GNU General Public License as published by the Free
14       Software Foundation; either version 2 of the License, or (at
15       your option) any later version
16
17   or both in parallel, as here.
18
19   elfutils is distributed in the hope that it will be useful, but
20   WITHOUT ANY WARRANTY; without even the implied warranty of
21   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22   General Public License for more details.
23
24   You should have received copies of the GNU General Public License and
25   the GNU Lesser General Public License along with this program.  If
26   not, see <http://www.gnu.org/licenses/>.  */
27
28/*	    NAME,		REL|EXEC|DYN	*/
29
30RELOC_TYPE (NONE,		EXEC|DYN)
31RELOC_TYPE (32,			REL|EXEC|DYN)
32RELOC_TYPE (64,			REL|EXEC|DYN)
33RELOC_TYPE (RELATIVE,		EXEC|DYN)
34RELOC_TYPE (COPY,		EXEC|DYN)
35RELOC_TYPE (JUMP_SLOT,		EXEC|DYN)
36RELOC_TYPE (TLS_DTPMOD32,	EXEC|DYN)
37RELOC_TYPE (TLS_DTPMOD64,	EXEC|DYN)
38RELOC_TYPE (TLS_DTPREL32,	EXEC|DYN)
39RELOC_TYPE (TLS_DTPREL64,	EXEC|DYN)
40RELOC_TYPE (TLS_TPREL32,	EXEC|DYN)
41RELOC_TYPE (TLS_TPREL64,	EXEC|DYN)
42RELOC_TYPE (BRANCH,		REL)
43RELOC_TYPE (JAL,		REL)
44RELOC_TYPE (CALL,		REL)
45RELOC_TYPE (CALL_PLT,		REL)
46RELOC_TYPE (GOT_HI20,		REL)
47RELOC_TYPE (TLS_GOT_HI20,	REL)
48RELOC_TYPE (TLS_GD_HI20,	REL)
49RELOC_TYPE (PCREL_HI20,		REL)
50RELOC_TYPE (PCREL_LO12_I,	REL)
51RELOC_TYPE (PCREL_LO12_S,	REL)
52RELOC_TYPE (HI20,		REL)
53RELOC_TYPE (LO12_I,		REL)
54RELOC_TYPE (LO12_S,		REL)
55RELOC_TYPE (TPREL_HI20,		REL)
56RELOC_TYPE (TPREL_LO12_I,	REL)
57RELOC_TYPE (TPREL_LO12_S,	REL)
58RELOC_TYPE (TPREL_ADD,		REL)
59RELOC_TYPE (ADD8,		REL)
60RELOC_TYPE (ADD16,		REL)
61RELOC_TYPE (ADD32,		REL)
62RELOC_TYPE (ADD64,		REL)
63RELOC_TYPE (SUB8,		REL)
64RELOC_TYPE (SUB16,		REL)
65RELOC_TYPE (SUB32,		REL)
66RELOC_TYPE (SUB64,		REL)
67RELOC_TYPE (GNU_VTINHERIT,	REL)
68RELOC_TYPE (GNU_VTENTRY,	REL)
69RELOC_TYPE (ALIGN,		REL)
70RELOC_TYPE (RVC_BRANCH,		REL)
71RELOC_TYPE (RVC_JUMP,		REL)
72RELOC_TYPE (RVC_LUI,		REL)
73RELOC_TYPE (GPREL_I,		REL)
74RELOC_TYPE (GPREL_S,		REL)
75RELOC_TYPE (TPREL_I,		REL)
76RELOC_TYPE (TPREL_S,		REL)
77RELOC_TYPE (RELAX,		REL)
78RELOC_TYPE (SUB6,		REL)
79RELOC_TYPE (SET6,		REL)
80RELOC_TYPE (SET8,		REL)
81RELOC_TYPE (SET16,		REL)
82RELOC_TYPE (SET32,		REL)
83RELOC_TYPE (32_PCREL,		REL)
84