diff options
author | emaste <emaste@FreeBSD.org> | 2015-04-28 12:48:30 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2015-04-28 12:48:30 +0000 |
commit | 412d04f751863fe865f6a4bbaeb0883c0a52c8a8 (patch) | |
tree | 8e7df41910bfcacbc88226de40b7e54f99237117 | |
parent | d4d41d1bcf6dd531947b3d93355298aa4db105de (diff) | |
download | FreeBSD-src-412d04f751863fe865f6a4bbaeb0883c0a52c8a8.zip FreeBSD-src-412d04f751863fe865f6a4bbaeb0883c0a52c8a8.tar.gz |
MFC r281107: 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.
-rw-r--r-- | libexec/rtld-elf/mips/reloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/mips/reloc.c b/libexec/rtld-elf/mips/reloc.c index 4e750d7..809adb8 100644 --- a/libexec/rtld-elf/mips/reloc.c +++ b/libexec/rtld-elf/mips/reloc.c @@ -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", |