Author: kib
Date: Sat Sep 12 09:46:14 2020
New Revision: 365654
URL: https://svnweb.freebsd.org/changeset/base/365654

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

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

Modified: stable/12/libexec/rtld-elf/rtld.c
==============================================================================
--- stable/12/libexec/rtld-elf/rtld.c   Sat Sep 12 09:44:50 2020        
(r365653)
+++ stable/12/libexec/rtld-elf/rtld.c   Sat Sep 12 09:46:14 2020        
(r365654)
@@ -2979,11 +2979,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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to