[PATCH] gprofng: Properly generate file offset for gmon.out

H.J. Lu hjl.tools@gmail.com
Mon Aug 10 04:00:26 GMT 2026


When generating the map file for gmon.out, get the file offset from the
filepos field of core_text_sect.  This fixes

FAIL: tmpdir/gp-gmon

on Linux/x86-64.

PR gprofng/34502
* src/gp-gmon.cc (gen_gmon_map): Get the file offset from the
filepos field of core_text_sect.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gprofng-Properly-generate-file-offset-for-gmon.out.patch
Type: text/x-patch
Size: 1391 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260810/96fc2330/attachment-0001.bin>


More information about the Binutils mailing list