Page MenuHomeFreeBSD
Paste P529

(An Untitled Masterwork)
ActivePublic

Authored by jrtc27 on Nov 16 2021, 11:22 PM.
Tags
None
Referenced Files
F32137180: raw-paste-data.txt
Nov 16 2021, 11:22 PM
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 object in space S1 Global.