summaryrefslogtreecommitdiffstats
path: root/sys/kern/link_elf.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-12-18 04:52:37 +0000
committermarcel <marcel@FreeBSD.org>2005-12-18 04:52:37 +0000
commit0a081d09f4f7db02d1baa4889eb218e2eff4097a (patch)
treec8421e79058b3959c09903a706bc77c9de3e7087 /sys/kern/link_elf.c
parent3394701ae17fa6037d9dc3f0da623707988cb02a (diff)
downloadFreeBSD-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 'sys/kern/link_elf.c')
-rw-r--r--sys/kern/link_elf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c
index 29b54e5..7b3f1ab 100644
--- a/sys/kern/link_elf.c
+++ b/sys/kern/link_elf.c
@@ -120,7 +120,7 @@ static int link_elf_each_function_name(linker_file_t,
int (*)(const char *, void *),
void *);
static void link_elf_reloc_local(linker_file_t);
-static Elf_Addr elf_lookup(linker_file_t lf, Elf_Word symidx, int deps);
+static Elf_Addr elf_lookup(linker_file_t lf, Elf_Size symidx, int deps);
static kobj_method_t link_elf_methods[] = {
KOBJMETHOD(linker_lookup_symbol, link_elf_lookup_symbol),
@@ -909,7 +909,7 @@ link_elf_unload_preload(linker_file_t file)
}
static const char *
-symbol_name(elf_file_t ef, Elf_Word r_info)
+symbol_name(elf_file_t ef, Elf_Size r_info)
{
const Elf_Sym *ref;
@@ -1232,7 +1232,7 @@ link_elf_get_gp(linker_file_t lf)
#endif
const Elf_Sym *
-elf_get_sym(linker_file_t lf, Elf_Word symidx)
+elf_get_sym(linker_file_t lf, Elf_Size symidx)
{
elf_file_t ef = (elf_file_t)lf;
@@ -1242,7 +1242,7 @@ elf_get_sym(linker_file_t lf, Elf_Word symidx)
}
const char *
-elf_get_symname(linker_file_t lf, Elf_Word symidx)
+elf_get_symname(linker_file_t lf, Elf_Size symidx)
{
elf_file_t ef = (elf_file_t)lf;
const Elf_Sym *sym;
@@ -1261,7 +1261,7 @@ elf_get_symname(linker_file_t lf, Elf_Word symidx)
* the case that the symbol can be found through the hash table.
*/
static Elf_Addr
-elf_lookup(linker_file_t lf, Elf_Word symidx, int deps)
+elf_lookup(linker_file_t lf, Elf_Size symidx, int deps)
{
elf_file_t ef = (elf_file_t)lf;
const Elf_Sym *sym;
OpenPOWER on IntegriCloud