svn commit: r281107 - head/libexec/rtld-elf/mips

Ed Maste emaste at FreeBSD.org
Sun Apr 5 14:06:12 UTC 2015


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",


More information about the svn-src-all mailing list