diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-06 20:04:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-06 20:04:01 +0000 |
commit | fb77cb0f007d25ab8a99b64eb77a2c87f0f2716b (patch) | |
tree | 1ca0d8d9ec13024a0568af5622c3aad9598e5f3f /libexec/ld.so/sparc64/rtld_machine.c | |
parent | b3bbcf5fcb95fdeddc3df57ff9537e59f900a405 (diff) |
various proto, ansi, and knf repair. tested on all architectures that
use it. (build may require make cleandir because of .depend balony)
Diffstat (limited to 'libexec/ld.so/sparc64/rtld_machine.c')
-rw-r--r-- | libexec/ld.so/sparc64/rtld_machine.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ld.so/sparc64/rtld_machine.c b/libexec/ld.so/sparc64/rtld_machine.c index 4e2b0a52d4d..93a28a9dd0c 100644 --- a/libexec/ld.so/sparc64/rtld_machine.c +++ b/libexec/ld.so/sparc64/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.26 2003/06/03 16:20:41 art Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.27 2003/07/06 20:04:00 deraadt Exp $ */ /* * Copyright (c) 1999 Dale Rahn @@ -209,6 +209,7 @@ static long reloc_target_bitmask[] = { #define RELOC_VALUE_BITMASK(t) (reloc_target_bitmask[t]) void _dl_reloc_plt(Elf_Word *where, Elf_Addr value, Elf_RelA *rela); +void _dl_install_plt(Elf_Word *pltgot, Elf_Addr proc); int _dl_md_reloc(elf_object_t *object, int rel, int relasz) @@ -589,7 +590,7 @@ _dl_reloc_plt(Elf_Word *where, Elf_Addr value, Elf_RelA *rela) /* * Resolve a symbol at run-time. */ -void * +Elf_Addr _dl_bind(elf_object_t *object, int index) { Elf_RelA *rela; @@ -654,7 +655,7 @@ _dl_bind(elf_object_t *object, int index) _dl_sigprocmask(SIG_SETMASK, &omask, NULL); } - return (void *)ooff + this->st_value; + return ooff + this->st_value; } /* |