Carmelo Amoroso %!s(int64=18) %!d(string=hai) anos
pai
achega
9794acc88e
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  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
 		}
 	}