svn commit: r365656 - stable/11/libexec/rtld-elf

Konstantin Belousov kib at FreeBSD.org
Sat Sep 12 09:47:59 UTC 2020


Author: kib
Date: Sat Sep 12 09:47:58 2020
New Revision: 365656
URL: https://svnweb.freebsd.org/changeset/base/365656

Log:
  MFC r365369:
  rtld: do not refuse to relocate objects without dynamic symtabs.
  
  PR:	249121

Modified:
  stable/11/libexec/rtld-elf/rtld.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/libexec/rtld-elf/rtld.c
==============================================================================
--- stable/11/libexec/rtld-elf/rtld.c	Sat Sep 12 09:47:25 2020	(r365655)
+++ stable/11/libexec/rtld-elf/rtld.c	Sat Sep 12 09:47:58 2020	(r365656)
@@ -2955,11 +2955,8 @@ relocate_object(Obj_Entry *obj, bool bind_now, Obj_Ent
 		dbg("relocating \"%s\"", obj->path);
 
 	if (obj->symtab == NULL || obj->strtab == NULL ||
-	    !(obj->valid_hash_sysv || obj->valid_hash_gnu)) {
-		_rtld_error("%s: Shared object has no run-time symbol table",
-			    obj->path);
-		return (-1);
-	}
+	    !(obj->valid_hash_sysv || obj->valid_hash_gnu))
+		dbg("object %s has no run-time symbol table", obj->path);
 
 	/* There are relocations to the write-protected text segment. */
 	if (obj->textrel && reloc_textrel_prot(obj, true) != 0)


More information about the svn-src-stable mailing list