Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P529
(An Untitled Masterwork)
Active
Public
Actions
Authored by
jrtc27
on Nov 16 2021, 11:22 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F32137180: raw-paste-data.txt
Nov 16 2021, 11:22 PM
2021-11-16 23:22:39 (UTC+0)
Subscribers
None
diff --git a/lib/libpmcstat/libpmcstat_image.c b/lib/libpmcstat/libpmcstat_image.c
index 9ee7097e95ec..6131c2a3ff00 100644
--- a/lib/libpmcstat/libpmcstat_image.c
+++ b/lib/libpmcstat/libpmcstat_image.c
@@ -415,8 +415,7 @@ pmcstat_image_get_elf_params(struct pmcstat_image *image,
ph.p_offset);
break;
case PT_LOAD:
- if ((ph.p_flags & PF_X) != 0 &&
- (ph.p_offset & (-ph.p_align)) == 0)
+ if (image->pi_vaddr == 0)
image->pi_vaddr = ph.p_vaddr & (-ph.p_align);
break;
}
Event Timeline
jrtc27
created this paste.
Nov 16 2021, 11:22 PM
2021-11-16 23:22:39 (UTC+0)
jrtc27
created this object in space
S1 Global
.
Log In to Comment