Carmelo Amoroso 17 vuotta sitten
vanhempi
commit
9794acc88e
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5 2
      ldso/ldso/sh/elfinterp.c

+ 5 - 2
ldso/ldso/sh/elfinterp.c

@@ -186,8 +186,11 @@ _dl_do_reloc (struct elf_resolve *tpnt,struct dyn_elf *scope,
 			_dl_dprintf(2, "%s: can't resolve symbol '%s'\n",
 			            _dl_progname, strtab + symtab[symtab_index].st_name);
 
-			/* Let the caller to handle the error: it may be non fatal if called from dlopen */
-			return 1;
+			/*
+			 * The caller should handle the error: undefined reference to weak symbols
+			 * are not fatal.
+			 */
+			return 1
 		}
 	}