Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108557952
D43858.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D43858.diff
View Options
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -4690,6 +4690,20 @@
return (ESRCH);
}
+static int
+symlook_obj_load_filtees(SymLook *req, SymLook *req1, const Obj_Entry *obj,
+ Needed_Entry *needed)
+{
+ DoneList donelist;
+ int flags;
+
+ flags = (req->flags & SYMLOOK_EARLY) != 0 ? RTLD_LO_EARLY : 0;
+ load_filtees(__DECONST(Obj_Entry *, obj), flags, req->lockstate);
+ donelist_init(&donelist);
+ symlook_init_from_req(req1, req);
+ return (symlook_needed(req1, needed, &donelist));
+}
+
/*
* Search the symbol table of a single shared object for a symbol of
* the given name and version, if requested. Returns a pointer to the
@@ -4702,9 +4716,8 @@
int
symlook_obj(SymLook *req, const Obj_Entry *obj)
{
- DoneList donelist;
SymLook req1;
- int flags, res, mres;
+ int res, mres;
/*
* If there is at least one valid hash at this point, we prefer to
@@ -4719,11 +4732,8 @@
if (mres == 0) {
if (obj->needed_filtees != NULL) {
- flags = (req->flags & SYMLOOK_EARLY) ? RTLD_LO_EARLY : 0;
- load_filtees(__DECONST(Obj_Entry *, obj), flags, req->lockstate);
- donelist_init(&donelist);
- symlook_init_from_req(&req1, req);
- res = symlook_needed(&req1, obj->needed_filtees, &donelist);
+ res = symlook_obj_load_filtees(req, &req1, obj,
+ obj->needed_filtees);
if (res == 0) {
req->sym_out = req1.sym_out;
req->defobj_out = req1.defobj_out;
@@ -4731,11 +4741,8 @@
return (res);
}
if (obj->needed_aux_filtees != NULL) {
- flags = (req->flags & SYMLOOK_EARLY) ? RTLD_LO_EARLY : 0;
- load_filtees(__DECONST(Obj_Entry *, obj), flags, req->lockstate);
- donelist_init(&donelist);
- symlook_init_from_req(&req1, req);
- res = symlook_needed(&req1, obj->needed_aux_filtees, &donelist);
+ res = symlook_obj_load_filtees(req, &req1, obj,
+ obj->needed_aux_filtees);
if (res == 0) {
req->sym_out = req1.sym_out;
req->defobj_out = req1.defobj_out;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 8:05 AM (2 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16190680
Default Alt Text
D43858.diff (2 KB)
Attached To
Mode
D43858: More avoidance of the filtees loading recursion
Attached
Detach File
Event Timeline
Log In to Comment