[Bug 288000] dtrace: fix symbol address resolving
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 288000] [PATCH] dtrace: fix symbol address resolving"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Jul 2025 20:17:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288000
--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=12bef37a824c52582ee8f38699b8ae4fde17068d
commit 12bef37a824c52582ee8f38699b8ae4fde17068d
Author: Jiacong Fang <zldrobit@gmail.com>
AuthorDate: 2025-07-07 18:51:51 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-07-07 20:16:31 +0000
dtrace: fix symbol address resolution
Dtrace assumes only ELF sections of type SHT_PROGBITS or SHT_NOBITS
occupy memory space. However, sections with SHF_ALLOC flag also consume
memory space. Moreover, the symbol address initialization skips symbols
at the very beginning of a section in ET_REL KLDs.
Fix: Check section flag for calculating section offset, and disable the
skipping at the beginning of a section.
PR: 288000
Reviewed by: markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D51188
cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.