aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/nlist.c
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 /lib/libc/gen/nlist.c
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 'lib/libc/gen/nlist.c')
-rw-r--r--lib/libc/gen/nlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c
index b52d7c2a82e3..73b9ea16f7fe 100644
--- a/lib/libc/gen/nlist.c
+++ b/lib/libc/gen/nlist.c
@@ -243,8 +243,8 @@ __elf_fdnlist(fd, list)
{
struct nlist *p;
Elf_Off symoff = 0, symstroff = 0;
- Elf_Word symsize = 0, symstrsize = 0;
- Elf_Sword cc, i;
+ Elf_Size symsize = 0, symstrsize = 0;
+ Elf_Ssize cc, i;
int nent = -1;
int errsave;
Elf_Sym sbuf[1024];
@@ -252,7 +252,7 @@ __elf_fdnlist(fd, list)
Elf_Ehdr ehdr;
char *strtab = NULL;
Elf_Shdr *shdr = NULL;
- Elf_Word shdr_size;
+ Elf_Size shdr_size;
void *base;
struct stat st;