Page MenuHomeFreeBSD
Paste P529

(An Untitled Masterwork)
ActivePublic

Authored by jrtc27 on Tue, Nov 16, 11:22 PM.
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.