[PATCH] gprofng: Properly generate file offset for gmon.out
Project / Subsystem
binutils / gprofng
Date
2026-08-10
Proposer
"H.J. Lu" <hjl.tools@gmail.com>
Source type
public_inbox
Consensus
Proposed
Sentiment
—/10
All attributes
- project
- binutils
- subsystem
- gprofng
- patch_id
- —
- discussion_id
- CAMe9rOpYCtZT3UzHLuhRtq0nCG443bwiygD-cUMtfAKt_HkEGQ@mail.gmail.com
- source_type
- public_inbox
- title
- [PATCH] gprofng: Properly generate file offset for gmon.out
- headline
- gprofng: Properly generate file offset for gmon.out
- tldr
- Patch corrects gprofng's map file generation by using the correct file offset from core_text_sect.
- proposer
- "H.J. Lu" <hjl.tools@gmail.com>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- —
- technical_tradeoffs
- []
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
- []
- bugzilla_url
- —
- date
- 2026-08-10T00:00:00.000Z
[PATCH] gprofng: Properly generate file offset for gmon.out
H.J. Lu proposes a patch for gprofng to correctly generate the file offset for gmon.out when creating a map file. The fix involves retrieving the file offset from the filepos field of core_text_sect, which resolves a failure in the tmpdir/gp-gmon test case on Linux/x86-64.