diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-09-22 01:33:10 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-09-22 01:33:10 +0000 |
commit | 5b5ae816738dee5610782157ce0dddcfecc6d19f (patch) | |
tree | a9fe8e435c59ebe62fa71b2892416ed479b7ab34 /libexec/ld.so/hppa | |
parent | 4ca9b37d2d5d1992aeaf8ce55b7c5e06b2047220 (diff) |
Use std missing symbol print instead of MD custom, do not warn on weak
undefined symbols, or count them as failures. inspired kurt@
Diffstat (limited to 'libexec/ld.so/hppa')
-rw-r--r-- | libexec/ld.so/hppa/rtld_machine.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libexec/ld.so/hppa/rtld_machine.c b/libexec/ld.so/hppa/rtld_machine.c index da5602f748a..330a8440252 100644 --- a/libexec/ld.so/hppa/rtld_machine.c +++ b/libexec/ld.so/hppa/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.9 2005/09/21 23:12:10 drahn Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.10 2005/09/22 01:33:08 drahn Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff @@ -162,13 +162,12 @@ _dl_md_reloc(elf_object_t *object, int rel, int relasz) if (ELF_R_SYM(rela->r_info) && sym->st_name) { ooff = _dl_find_symbol_bysym(object, ELF_R_SYM(rela->r_info), &this, - SYM_SEARCH_ALL|SYM_NOWARNNOTFOUND| + SYM_SEARCH_ALL|SYM_WARNNOTFOUND| ((type == RELOC_DIR32) ? SYM_NOTPLT : SYM_PLT), sym, &sobj); - if (!this) { - _dl_printf("%s: %s: can't resolve reference '%s'\n", - _dl_progname, object->load_name, symn); - fails++; + if (this == NULL) { + if (ELF_ST_BIND(sym->st_info) != STB_WEAK) + fails++; continue; } } |