Page MenuHomeFreeBSD

D33055.id98703.diff
No OneTemporary

D33055.id98703.diff

diff --git a/lib/libpmcstat/libpmcstat_image.c b/lib/libpmcstat/libpmcstat_image.c
--- a/lib/libpmcstat/libpmcstat_image.c
+++ b/lib/libpmcstat/libpmcstat_image.c
@@ -384,7 +384,7 @@
* 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 @@
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

Mime Type
text/plain
Expires
Wed, Nov 20, 11:07 AM (2 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14736802
Default Alt Text
D33055.id98703.diff (720 B)

Event Timeline