summaryrefslogtreecommitdiff
path: root/libexec/ld.so/i386
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-11-14 15:15:55 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-11-14 15:15:55 +0000
commit44075a99e43efca7c637069c0588b5d09c6dc4d5 (patch)
treeee6bfd462cec2903b80d0d470e2ded977125c9c8 /libexec/ld.so/i386
parentfe8301cb0911366f651960c3fa105c7cb6288cb3 (diff)
Make error messages on symbol lookup failures more useful.
Diffstat (limited to 'libexec/ld.so/i386')
-rw-r--r--libexec/ld.so/i386/rtld_machine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/i386/rtld_machine.c b/libexec/ld.so/i386/rtld_machine.c
index b207ae8d538..a61a3edf531 100644
--- a/libexec/ld.so/i386/rtld_machine.c
+++ b/libexec/ld.so/i386/rtld_machine.c
@@ -175,7 +175,7 @@ _dl_md_reloc(elf_object_t *object, int rel, int relsz)
&this, SYM_SEARCH_ALL|SYM_WARNNOTFOUND|
((type == R_TYPE(JUMP_SLOT))?
SYM_PLT:SYM_NOTPLT),
- sym->st_size);
+ sym->st_size, object->load_name);
if (this == NULL) {
resolve_failed:
_dl_printf("%s: %s: can't resolve "
@@ -204,7 +204,7 @@ resolve_failed:
soff = _dl_find_symbol(symn, object->next, &srcsym,
SYM_SEARCH_ALL|SYM_WARNNOTFOUND|
((type == R_TYPE(JUMP_SLOT)) ? SYM_PLT:SYM_NOTPLT),
- size);
+ size, object->load_name);
if (srcsym == NULL)
goto resolve_failed;
@@ -298,7 +298,7 @@ _dl_bind(elf_object_t *object, int index)
addr = (Elf_Word *)(object->load_offs + rel->r_offset);
this = NULL;
ooff = _dl_find_symbol(symn, _dl_objects, &this,
- SYM_SEARCH_ALL|SYM_WARNNOTFOUND|SYM_PLT, 0);
+ SYM_SEARCH_ALL|SYM_WARNNOTFOUND|SYM_PLT, 0, object->load_name);
if (this == NULL) {
_dl_printf("lazy binding failed!\n");
*((int *)0) = 0; /* XXX */