Add licensing text to every source file.
[binutils.git] / elfcpp / i386.h
blob13937884e70f4e0708c2393a15d6b1d5a3c3597f
1 // i386.h -- ELF definitions specific to EM_386 -*- C++ -*-
3 // Copyright 2006, 2007, Free Software Foundation, Inc.
4 // Written by Ian Lance Taylor <iant@google.com>.
6 // This file is part of elfcpp.
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Library General Public License
10 // as published by the Free Software Foundation; either version 2, or
11 // (at your option) any later version.
13 // In addition to the permissions in the GNU Library General Public
14 // License, the Free Software Foundation gives you unlimited
15 // permission to link the compiled version of this file into
16 // combinations with other programs, and to distribute those
17 // combinations without any restriction coming from the use of this
18 // file. (The Library Public License restrictions do apply in other
19 // respects; for example, they cover modification of the file, and
20 /// distribution when not linked into a combined executable.)
22 // This program is distributed in the hope that it will be useful, but
23 // WITHOUT ANY WARRANTY; without even the implied warranty of
24 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 // Library General Public License for more details.
27 // You should have received a copy of the GNU Library General Public
28 // License along with this program; if not, write to the Free Software
29 // Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
30 // 02110-1301, USA.
32 #ifndef ELFCPP_I386_H
33 #define ELFCPP_I386_H
35 namespace elfcpp
38 enum
40 R_386_NONE = 0,
41 R_386_32 = 1,
42 R_386_PC32 = 2,
43 R_386_GOT32 = 3,
44 R_386_PLT32 = 4,
45 R_386_COPY = 5,
46 R_386_GLOB_DAT = 6,
47 R_386_JUMP_SLOT = 7,
48 R_386_RELATIVE = 8,
49 R_386_GOTOFF = 9,
50 R_386_GOTPC = 10,
51 // Used by Sun.
52 R_386_32PLT = 11,
53 // TLS extensions.
54 R_386_TLS_TPOFF = 14,
55 R_386_TLS_IE = 15,
56 R_386_TLS_GOTIE = 16,
57 R_386_TLS_LE = 17,
58 R_386_TLS_GD = 18,
59 R_386_TLS_LDM = 19,
60 // GNU extensions.
61 R_386_16 = 20,
62 R_386_PC16 = 21,
63 R_386_8 = 22,
64 R_386_PC8 = 23,
65 // More TLS relocs.
66 R_386_TLS_GD_32 = 24,
67 R_386_TLS_GD_PUSH = 25,
68 R_386_TLS_GD_CALL = 26,
69 R_386_TLS_GD_POP = 27,
70 R_386_TLS_LDM_32 = 28,
71 R_386_TLS_LDM_PUSH = 29,
72 R_386_TLS_LDM_CALL = 30,
73 R_386_TLS_LDM_POP = 31,
74 R_386_TLS_LDO_32 = 32,
75 R_386_TLS_IE_32 = 33,
76 R_386_TLS_LE_32 = 34,
77 R_386_TLS_DTPMOD32 = 35,
78 R_386_TLS_DTPOFF32 = 36,
79 R_386_TLS_TPOFF32 = 37,
80 R_386_TLS_GOTDESC = 39,
81 R_386_TLS_DESC_CALL = 40,
82 R_386_TLS_DESC = 41,
83 // Used by Intel.
84 R_386_USED_BY_INTEL_200 = 200,
85 // GNU vtable garbage collection extensions.
86 R_386_GNU_VTINHERIT = 250,
87 R_386_GNU_VTENTRY = 251
90 } // End namespace elfcpp.
92 #endif // !defined(ELFCPP_I386_H)