Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Sep 2020 22:44:38 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365369 - head/libexec/rtld-elf
Message-ID:  <202009052244.085Micsu060759@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sat Sep  5 22:44:38 2020
New Revision: 365369
URL: https://svnweb.freebsd.org/changeset/base/365369

Log:
  rtld: do not refuse to relocate objects without dynamic symtabs.
  
  Such objects can still have valid relocations not requiring symbolic
  references.
  
  PR:	249121
  Reported by:	wsh@riski.sh
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/libexec/rtld-elf/rtld.c

Modified: head/libexec/rtld-elf/rtld.c
==============================================================================
--- head/libexec/rtld-elf/rtld.c	Sat Sep  5 22:41:31 2020	(r365368)
+++ head/libexec/rtld-elf/rtld.c	Sat Sep  5 22:44:38 2020	(r365369)
@@ -3013,11 +3013,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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009052244.085Micsu060759>