Date: Sun, 5 Apr 2015 14:06:12 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281107 - head/libexec/rtld-elf/mips Message-ID: <201504051406.t35E6Cxm049822@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Sun Apr 5 14:06:11 2015 New Revision: 281107 URL: https://svnweb.freebsd.org/changeset/base/281107 Log: 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 Modified: head/libexec/rtld-elf/mips/reloc.c Modified: head/libexec/rtld-elf/mips/reloc.c ============================================================================== --- head/libexec/rtld-elf/mips/reloc.c Sun Apr 5 09:50:22 2015 (r281106) +++ head/libexec/rtld-elf/mips/reloc.c Sun Apr 5 14:06:11 2015 (r281107) @@ -245,7 +245,7 @@ _mips_rtld_bind(Obj_Entry *obj, Elf_Size 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",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504051406.t35E6Cxm049822>