svn commit: r365369 - head/libexec/rtld-elf
Konstantin Belousov
kib at FreeBSD.org
Sat Sep 5 22:44:38 UTC 2020
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 at 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)
More information about the svn-src-head
mailing list