Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F32187741
raw-paste-data.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
jrtc27
Nov 17 2021, 9:36 PM
2021-11-17 21:36:48 (UTC+0)
Size
873 B
Referenced Files
None
Subscribers
None
raw-paste-data.txt
View Options
diff --git a/lib/libpmcstat/libpmcstat_image.c b/lib/libpmcstat/libpmcstat_image.c
index 9ee7097e95ec..2ba382d02c43 100644
--- a/lib/libpmcstat/libpmcstat_image.c
+++ b/lib/libpmcstat/libpmcstat_image.c
@@ -384,7 +384,7 @@ pmcstat_image_get_elf_params(struct pmcstat_image *image,
* loaded. Additionally, for dynamically linked executables,
* save the pathname to the runtime linker.
*/
- if (eh.e_type == ET_EXEC) {
+ if (eh.e_type != ET_REL) {
if (elf_getphnum(e, &nph) == 0) {
warnx(
"WARNING: Could not determine the number of program headers in \"%s\": %s.",
@@ -416,7 +416,7 @@ pmcstat_image_get_elf_params(struct pmcstat_image *image,
break;
case PT_LOAD:
if ((ph.p_flags & PF_X) != 0 &&
- (ph.p_offset & (-ph.p_align)) == 0)
+ image->pi_vaddr == 0)
image->pi_vaddr = ph.p_vaddr & (-ph.p_align);
break;
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4234951
Default Alt Text
raw-paste-data.txt (873 B)
Attached To
Mode
P530 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment