From b50bbf55b6fa7fa60024f46381305a6a0eba142f Mon Sep 17 00:00:00 2001 From: emaste Date: Tue, 28 Apr 2015 12:48:30 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.freebsd.org/base/stable/10@282142 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- libexec/rtld-elf/mips/reloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rtld-elf/mips/reloc.c b/libexec/rtld-elf/mips/reloc.c index 4e750d7d9..809adb81f 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", -- 2.42.0