It appears that all the .rodata* sections are contiguous, after considering
alignment.  Thus a workaround would be for valgrind's debuginfo reader
to aggregate them all into one internal .rodata which is the convex hull.

Example:

  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
round_up(Off + Size, Al.next) = Off.next

  [15] .rodata._ZNKSt10l PROGBITS        00093a88 093a88 000010 01 AMS  0   0  1
round_up(093a88 + 000010, 1) = 093a98

  [16] .rodata._ZNKSt12_ PROGBITS        00093a98 093a98 000008 01 AMS  0   0  1
round_up(093a98 + 000008, 1) = 093aa0

  [17] .rodata._ZNKSt12_ PROGBITS        00093aa0 093aa0 000007 01 AMS  0   0  1
round_up(093aa0 + 000007, 32) = 093ac0  <<< note Al.next

  [18] .rodata           PROGBITS        00093ac0 093ac0 003504 00   A  0   0 32
round_up(093ac0 + 003504, 32) = 096fe0

  [19] .rodata._ZTSNSt12 PROGBITS        00096fe0 096fe0 00002c 00   A  0   0 32
round_up(096fe0 + 00002c, 32) = 097020

  [20] .rodata._ZTSNSt12 PROGBITS        00097020 097020 00002b 00   A  0   0 32
round_up(097020 + 00002b, 1) = 09704b  <<< note Al.next

  [21] .rodata._ZNSt6chr PROGBITS        0009704b 09704b 000001 00   A  0   0  1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to