https://sourceware.org/bugzilla/show_bug.cgi?id=34502

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
gen_gmon_map in gp-gmon.cc has

  int offset = 0;
...
  fprintf (mapx, "<event kind=\"map\" object=\"segment\" tstamp=\"%u.%09u\" "
           "vaddr=\"0x%016llX\" size=\"%llu\" pagesz=\"%d\"
foffset=\"%c0x%08llX\" "
           "modes=\"0x%03X\" chksum=\"0x%0X\" name=\"%s\"/>\n",
           (unsigned) (timestamp / NANOSEC),
           (unsigned) (timestamp % NANOSEC),
           (long long unsigned) loadaddr, (long long unsigned) msize,
           (int) page_size, offset < 0 ? '-' : '+',
           (long long unsigned) (offset < 0 ? -offset : offset),
           modeflags, check, name);

0 is a bogus file offset.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to