aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/elf_generic.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2005-12-18 04:52:37 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2005-12-18 04:52:37 +0000
commit757686b11510174fffffec96b816204c8d659fba (patch)
treec8421e79058b3959c09903a706bc77c9de3e7087 /sys/sys/elf_generic.h
parent55dfaa916399e969ffb13d6c0562323b12a8ff14 (diff)
downloadsrc-757686b11510174fffffec96b816204c8d659fba.tar.gz
src-757686b11510174fffffec96b816204c8d659fba.zip
Make our ELF64 type definitions match standards. In particular this
means: o Remove Elf64_Quarter, o Redefine Elf64_Half to be 16-bit, o Redefine Elf64_Word to be 32-bit, o Add Elf64_Xword and Elf64_Sxword for 64-bit entities, o Use Elf_Size in MI code to abstract the difference between Elf32_Word and Elf64_Word. o Add Elf_Ssize as the signed counterpart of Elf_Size. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=153504
Diffstat (limited to 'sys/sys/elf_generic.h')
-rw-r--r--sys/sys/elf_generic.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/sys/elf_generic.h b/sys/sys/elf_generic.h
index cc0c471ad90c..c1e5a6639617 100644
--- a/sys/sys/elf_generic.h
+++ b/sys/sys/elf_generic.h
@@ -60,8 +60,6 @@ __ElfType(Half);
__ElfType(Off);
__ElfType(Sword);
__ElfType(Word);
-__ElfType(Size);
-__ElfType(Hashelt);
__ElfType(Ehdr);
__ElfType(Shdr);
__ElfType(Phdr);
@@ -70,6 +68,11 @@ __ElfType(Rel);
__ElfType(Rela);
__ElfType(Sym);
+/* Non-standard ELF types. */
+__ElfType(Hashelt);
+__ElfType(Size);
+__ElfType(Ssize);
+
#define ELF_R_SYM __ELFN(R_SYM)
#define ELF_R_TYPE __ELFN(R_TYPE)
#define ELF_R_INFO __ELFN(R_INFO)