From 5b5ae816738dee5610782157ce0dddcfecc6d19f Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Thu, 22 Sep 2005 01:33:10 +0000 Subject: Use std missing symbol print instead of MD custom, do not warn on weak undefined symbols, or count them as failures. inspired kurt@ --- libexec/ld.so/arm/rtld_machine.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libexec/ld.so/arm') diff --git a/libexec/ld.so/arm/rtld_machine.c b/libexec/ld.so/arm/rtld_machine.c index b02306f7e2f..7524a6a5e6e 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.8 2005/09/21 23:12:10 drahn Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.9 2005/09/22 01:33:08 drahn Exp $ */ /* * Copyright (c) 2004 Dale Rahn @@ -242,11 +242,9 @@ _dl_md_reloc(elf_object_t *object, int rel, int relsz) sym, NULL); if (this == NULL) { resolve_failed: - _dl_printf("%s: %s: can't resolve " - "reference '%s'\n", - _dl_progname, object->load_name, - symn); - fails++; + if (ELF_ST_BIND(sym->st_info) != + STB_WEAK) + fails++; continue; } value += (Elf_Addr)(ooff + this->st_value); -- cgit v1.2.3