diff options
author | marcel <marcel@FreeBSD.org> | 2005-12-18 04:52:37 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2005-12-18 04:52:37 +0000 |
commit | 0a081d09f4f7db02d1baa4889eb218e2eff4097a (patch) | |
tree | c8421e79058b3959c09903a706bc77c9de3e7087 /usr.sbin/kldxref/ef_obj.c | |
parent | 3394701ae17fa6037d9dc3f0da623707988cb02a (diff) | |
download | FreeBSD-src-0a081d09f4f7db02d1baa4889eb218e2eff4097a.zip FreeBSD-src-0a081d09f4f7db02d1baa4889eb218e2eff4097a.tar.gz |
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
Diffstat (limited to 'usr.sbin/kldxref/ef_obj.c')
-rw-r--r-- | usr.sbin/kldxref/ef_obj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/kldxref/ef_obj.c b/usr.sbin/kldxref/ef_obj.c index 3ed4e40..b35337b 100644 --- a/usr.sbin/kldxref/ef_obj.c +++ b/usr.sbin/kldxref/ef_obj.c @@ -113,7 +113,7 @@ static int ef_obj_seg_read_entry(elf_file_t ef, Elf_Off offset, size_t len, void **ptr); static int ef_obj_seg_read_entry_rel(elf_file_t ef, Elf_Off offset, size_t len, void **ptr); -static Elf_Addr ef_obj_symaddr(elf_file_t ef, Elf_Word symidx); +static Elf_Addr ef_obj_symaddr(elf_file_t ef, Elf_Size symidx); static int ef_obj_lookup_set(elf_file_t ef, const char *name, long *startp, long *stopp, long *countp); static int ef_obj_lookup_symbol(elf_file_t ef, const char* name, Elf_Sym** sym); @@ -176,7 +176,7 @@ ef_obj_lookup_set(elf_file_t ef, const char *name, long *startp, long *stopp, } static Elf_Addr -ef_obj_symaddr(elf_file_t ef, Elf_Word symidx) +ef_obj_symaddr(elf_file_t ef, Elf_Size symidx) { const Elf_Sym *sym; |