summaryrefslogtreecommitdiff
path: root/libexec/ld.so/arm
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-05-25 18:07:22 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-05-25 18:07:22 +0000
commit09c2c1a651b8caebf963956ee871e5ea48bcb12b (patch)
tree625eee2ffbfe0ed2b4c096d9ac2544a5f2ab1dcb /libexec/ld.so/arm
parent4f40e8347f536a8fa0e2caf3e7014349d1d34217 (diff)
return object* the symbol is in for _dl_find_symbol*; drahn@ ok
Diffstat (limited to 'libexec/ld.so/arm')
-rw-r--r--libexec/ld.so/arm/rtld_machine.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libexec/ld.so/arm/rtld_machine.c b/libexec/ld.so/arm/rtld_machine.c
index 32a34956c1b..4e199cc057f 100644
--- a/libexec/ld.so/arm/rtld_machine.c
+++ b/libexec/ld.so/arm/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.4 2004/05/25 15:56:18 deraadt Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.5 2004/05/25 18:07:20 mickey Exp $ */
/*
* Copyright (c) 2004 Dale Rahn
@@ -247,7 +247,7 @@ _dl_md_reloc(elf_object_t *object, int rel, int relsz)
this = NULL;
ooff = _dl_find_symbol_bysym(object,
ELF_R_SYM(rels->r_info),
- _dl_objects, &this,
+ _dl_objects, &this, NULL,
SYM_SEARCH_ALL|SYM_WARNNOTFOUND|
((type == R_TYPE(JUMP_SLOT)) ?
SYM_PLT : SYM_NOTPLT),
@@ -281,7 +281,7 @@ resolve_failed:
Elf_Addr soff;
soff = _dl_find_symbol(symn, object->next, &srcsym,
- SYM_SEARCH_ALL|SYM_WARNNOTFOUND|SYM_NOTPLT,
+ NULL, SYM_SEARCH_ALL|SYM_WARNNOTFOUND|SYM_NOTPLT,
size, object);
if (srcsym == NULL)
goto resolve_failed;
@@ -358,13 +358,13 @@ _dl_md_reloc_got(elf_object_t *object, int lazy)
object->got_addr = NULL;
object->got_size = 0;
this = NULL;
- ooff = _dl_find_symbol("__got_start", object, &this,
+ ooff = _dl_find_symbol("__got_start", object, &this, NULL,
SYM_SEARCH_SELF|SYM_NOWARNNOTFOUND|SYM_PLT, 0, object);
if (this != NULL)
object->got_addr = ooff + this->st_value;
this = NULL;
- ooff = _dl_find_symbol("__got_end", object, &this,
+ ooff = _dl_find_symbol("__got_end", object, &this, NULL,
SYM_SEARCH_SELF|SYM_NOWARNNOTFOUND|SYM_PLT, 0, object);
if (this != NULL)
object->got_size = ooff + this->st_value - object->got_addr;
@@ -419,7 +419,7 @@ _dl_bind(elf_object_t *object, int relidx)
sym += ELF_R_SYM(rel->r_info);
symn = object->dyn.strtab + sym->st_name;
- ooff = _dl_find_symbol(symn, _dl_objects, &this,
+ ooff = _dl_find_symbol(symn, _dl_objects, &this, NULL,
SYM_SEARCH_ALL|SYM_WARNNOTFOUND|SYM_PLT, sym->st_size, object);
if (this == NULL) {
_dl_printf("lazy binding failed!\n");