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:
parent
02df43b866
commit
ba29f2ddfb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281107
@ -245,7 +245,7 @@ _mips_rtld_bind(Obj_Entry *obj, Elf_Size reloff)
|
|||||||
def = find_symdef(reloff, obj, &defobj, SYMLOOK_IN_PLT, NULL,
|
def = find_symdef(reloff, obj, &defobj, SYMLOOK_IN_PLT, NULL,
|
||||||
NULL);
|
NULL);
|
||||||
if (def == NULL)
|
if (def == NULL)
|
||||||
_rtld_error("bind failed no symbol");
|
rtld_die();
|
||||||
|
|
||||||
target = (Elf_Addr)(defobj->relocbase + def->st_value);
|
target = (Elf_Addr)(defobj->relocbase + def->st_value);
|
||||||
dbg("bind now/fixup at %s sym # %jd in %s --> was=%p new=%p",
|
dbg("bind now/fixup at %s sym # %jd in %s --> was=%p new=%p",
|
||||||
|
Loading…
Reference in New Issue
Block a user