Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156689476
D7216.id18432.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7216.id18432.diff
View Options
Index: libexec/rtld-elf/rtld.c
===================================================================
--- libexec/rtld-elf/rtld.c
+++ libexec/rtld-elf/rtld.c
@@ -3291,19 +3291,21 @@
handle == RTLD_SELF) { /* ... caller included */
if (handle == RTLD_NEXT)
obj = globallist_next(obj);
- TAILQ_FOREACH_FROM(obj, &obj_list, next) {
- if (obj->marker)
- continue;
- res = symlook_obj(&req, obj);
- if (res == 0) {
- if (def == NULL ||
- ELF_ST_BIND(req.sym_out->st_info) != STB_WEAK) {
- def = req.sym_out;
- defobj = req.defobj_out;
- if (ELF_ST_BIND(def->st_info) != STB_WEAK)
- break;
+ if (obj != NULL) {
+ TAILQ_FOREACH_FROM(obj, &obj_list, next) {
+ if (obj->marker)
+ continue;
+ res = symlook_obj(&req, obj);
+ if (res == 0) {
+ if (def == NULL ||
+ ELF_ST_BIND(req.sym_out->st_info) != STB_WEAK) {
+ def = req.sym_out;
+ defobj = req.defobj_out;
+ if (ELF_ST_BIND(def->st_info) != STB_WEAK)
+ break;
+ }
+ }
}
- }
}
/*
* Search the dynamic linker itself, and possibly resolve the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 5:17 PM (3 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33140175
Default Alt Text
D7216.id18432.diff (1 KB)
Attached To
Mode
D7216: Fix RTLD_NEXT handling to not return the symbol from the current library.
Attached
Detach File
Event Timeline
Log In to Comment