MIPS rtld: report missing symbol rather than segfaulting

This is only an interim fix; MIPS should be using the MI code instead,
which does not have this issue.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D661
This commit is contained in:
Ed Maste 2015-04-05 14:06:11 +00:00
parent 02df43b866
commit ba29f2ddfb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281107

View File

@ -245,7 +245,7 @@ _mips_rtld_bind(Obj_Entry *obj, Elf_Size reloff)
def = find_symdef(reloff, obj, &defobj, SYMLOOK_IN_PLT, NULL,
NULL);
if (def == NULL)
_rtld_error("bind failed no symbol");
rtld_die();
target = (Elf_Addr)(defobj->relocbase + def->st_value);
dbg("bind now/fixup at %s sym # %jd in %s --> was=%p new=%p",