git: 2ddefc8259ef - stable/14 - rtld: fix processing of preloaded z_initfirst objects
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 Apr 2026 17:10:03 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=2ddefc8259ef386bd0c58460e7c44aae93839cfd
commit 2ddefc8259ef386bd0c58460e7c44aae93839cfd
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-04-16 23:07:43 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-04-23 17:09:46 +0000
rtld: fix processing of preloaded z_initfirst objects
(cherry picked from commit 9b844b495e8e63439ffe523757ac7444a16317af)
---
libexec/rtld-elf/rtld.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 5117448a0d28..7e12aa3d9c7f 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -2606,6 +2606,11 @@ initlist_add_objects(Obj_Entry *obj, Obj_Entry *tail, Objlist *list,
initlist_add_neededs(obj->needed_aux_filtees,
NULL, iflist);
objlist_push_tail(iflist, obj);
+
+ /* Recursively process the successor objects. */
+ nobj = globallist_next(obj);
+ if (nobj != NULL && obj != tail)
+ initlist_add_objects(nobj, tail, list, iflist);
} else {
if (obj->init_scanned)
return;