https://bugs.kde.org/show_bug.cgi?id=452802
--- Comment #2 from Paul Floyd <pjfl...@wanadoo.fr> ---
I have a theory, not really based on a firm understanding or thorough
debugging.

For this

         res = VG_(am_mmap_file_fixed_client)(
                  VG_PGROUNDDN(addr),
                  VG_PGROUNDUP(bss)-VG_PGROUNDDN(addr),
                  prot, /*VKI_MAP_FIXED|VKI_MAP_PRIVATE, */
                  e->fd, VG_PGROUNDDN(off)
               );

Should 'off' be the offset of the segment only, or the offset of the segment
from the start of the merged?

The readelf output gives the offsets as 0x970 and 0xb00. They both round down
to 0 with VG_PGROUNDDN.

If the offset of the second ought to be the sum of the two then that would
round down to 0x1000.

And I think that would resolve a lot of problems that I've seen (merging,
symbol lookup in shared libraries).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to