aboutsummaryrefslogtreecommitdiff
path: root/contrib/elftoolchain/common/elfdefinitions.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/elftoolchain/common/elfdefinitions.h')
-rw-r--r--contrib/elftoolchain/common/elfdefinitions.h56
1 files changed, 20 insertions, 36 deletions
diff --git a/contrib/elftoolchain/common/elfdefinitions.h b/contrib/elftoolchain/common/elfdefinitions.h
index a53acde8b6ce..7bed9a19a0dc 100644
--- a/contrib/elftoolchain/common/elfdefinitions.h
+++ b/contrib/elftoolchain/common/elfdefinitions.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: elfdefinitions.h 3178 2015-03-30 18:29:13Z emaste $
+ * $Id: elfdefinitions.h 2950 2013-06-15 13:36:02Z jkoshy $
*/
/*
@@ -171,7 +171,7 @@ _ELF_DEFINE_DT(DT_MOVEENT, 0x6FFFFDFAUL, \
"size of DT_MOVETAB entries") \
_ELF_DEFINE_DT(DT_MOVESZ, 0x6FFFFDFBUL, \
"total size of the MOVETAB table") \
-_ELF_DEFINE_DT(DT_FEATURE, 0x6FFFFDFCUL, "feature values") \
+_ELF_DEFINE_DT(DT_FEATURE_1, 0x6FFFFDFCUL, "feature values") \
_ELF_DEFINE_DT(DT_POSFLAG_1, 0x6FFFFDFDUL, \
"dynamic position flags") \
_ELF_DEFINE_DT(DT_SYMINSZ, 0x6FFFFDFEUL, \
@@ -770,8 +770,6 @@ _ELF_DEFINE_EM(EM_ETPU, 178, \
"Freescale Extended Time Processing Unit") \
_ELF_DEFINE_EM(EM_SLE9X, 179, \
"Infineon Technologies SLE9X core") \
-_ELF_DEFINE_EM(EM_AARCH64, 183, \
- "AArch64 (64-bit ARM)") \
_ELF_DEFINE_EM(EM_AVR32, 185, \
"Atmel Corporation 32-bit microprocessor family") \
_ELF_DEFINE_EM(EM_STM8, 186, \
@@ -821,8 +819,7 @@ enum {
EM__LAST__
};
-/* Other synonyms. */
-#define EM_AMD64 EM_X86_64
+/* Older synonyms. */
#define EM_ARC_A5 EM_ARC_COMPACT
/*
@@ -1396,12 +1393,6 @@ _ELF_DEFINE_RELOC(R_386_8, 22) \
_ELF_DEFINE_RELOC(R_386_PC8, 23)
/*
- */
-#define _ELF_DEFINE_AARCH64_RELOCATIONS() \
-_ELF_DEFINE_RELOC(R_AARCH64_ABS64, 257) \
-_ELF_DEFINE_RELOC(R_AARCH64_ABS32, 258) \
-
-/*
* These are the symbols used in the Sun ``Linkers and Loaders
* Guide'', Document No: 817-1984-17. See the X86_64 relocations list
* below for the spellings used in the ELF specification.
@@ -1954,21 +1945,14 @@ _ELF_DEFINE_RELOC(R_X86_64_TPOFF32, 23) \
_ELF_DEFINE_RELOC(R_X86_64_PC64, 24) \
_ELF_DEFINE_RELOC(R_X86_64_GOTOFF64, 25) \
_ELF_DEFINE_RELOC(R_X86_64_GOTPC32, 26) \
-_ELF_DEFINE_RELOC(R_X86_64_GOT64, 27) \
-_ELF_DEFINE_RELOC(R_X86_64_GOTPCREL64, 28) \
-_ELF_DEFINE_RELOC(R_X86_64_GOTPC64, 29) \
-_ELF_DEFINE_RELOC(R_X86_64_GOTPLT64, 30) \
-_ELF_DEFINE_RELOC(R_X86_64_PLTOFF64, 31) \
_ELF_DEFINE_RELOC(R_X86_64_SIZE32, 32) \
_ELF_DEFINE_RELOC(R_X86_64_SIZE64, 33) \
_ELF_DEFINE_RELOC(R_X86_64_GOTPC32_TLSDESC, 34) \
_ELF_DEFINE_RELOC(R_X86_64_TLSDESC_CALL, 35) \
-_ELF_DEFINE_RELOC(R_X86_64_TLSDESC, 36) \
-_ELF_DEFINE_RELOC(R_X86_64_IRELATIVE, 37)
+_ELF_DEFINE_RELOC(R_X86_64_TLSDESC, 36)
#define _ELF_DEFINE_RELOCATIONS() \
_ELF_DEFINE_386_RELOCATIONS() \
-_ELF_DEFINE_AARCH64_RELOCATIONS() \
_ELF_DEFINE_AMD64_RELOCATIONS() \
_ELF_DEFINE_ARM_RELOCATIONS() \
_ELF_DEFINE_IA64_RELOCATIONS() \
@@ -2128,11 +2112,11 @@ typedef struct {
/* 64-bit entry. */
typedef struct {
- Elf64_Word l_name; /* The name of a shared object. */
- Elf64_Word l_time_stamp; /* 32-bit timestamp. */
- Elf64_Word l_checksum; /* Checksum of visible symbols, sizes. */
- Elf64_Word l_version; /* Interface version string index. */
- Elf64_Word l_flags; /* Flags (LL_*). */
+ Elf64_Word l_name;
+ Elf64_Word l_time_stamp;
+ Elf64_Word l_checksum;
+ Elf64_Word l_version;
+ Elf64_Word l_flags;
} Elf64_Lib;
#define _ELF_DEFINE_LL_FLAGS() \
@@ -2380,12 +2364,12 @@ typedef struct {
/* 64 bit PHDR entry. */
typedef struct {
Elf64_Word p_type; /* Type of segment. */
- Elf64_Word p_flags; /* Segment flags. */
- Elf64_Off p_offset; /* File offset to segment. */
- Elf64_Addr p_vaddr; /* Virtual address in memory. */
- Elf64_Addr p_paddr; /* Physical address (if relevant). */
- Elf64_Xword p_filesz; /* Size of segment in file. */
- Elf64_Xword p_memsz; /* Size of segment in memory. */
+ Elf64_Word p_flags; /* File offset to segment. */
+ Elf64_Off p_offset; /* Virtual address in memory. */
+ Elf64_Addr p_vaddr; /* Physical address (if relevant). */
+ Elf64_Addr p_paddr; /* Size of segment in file. */
+ Elf64_Xword p_filesz; /* Size of segment in memory. */
+ Elf64_Xword p_memsz; /* Segment flags. */
Elf64_Xword p_align; /* Alignment constraints. */
} Elf64_Phdr;
@@ -2469,11 +2453,11 @@ typedef struct {
typedef struct {
Elf64_Word st_name; /* index of symbol's name */
- unsigned char st_info; /* type and binding attributes */
- unsigned char st_other; /* visibility */
- Elf64_Half st_shndx; /* index of related section */
- Elf64_Addr st_value; /* value for the symbol */
- Elf64_Xword st_size; /* size of associated data */
+ unsigned char st_info; /* value for the symbol */
+ unsigned char st_other; /* size of associated data */
+ Elf64_Half st_shndx; /* type and binding attributes */
+ Elf64_Addr st_value; /* visibility */
+ Elf64_Xword st_size; /* index of related section */
} Elf64_Sym;
#define ELF32_ST_BIND(I) ((I) >> 4)