[Dwarf-Discuss] Vendor extensions in .debug_macinfo

Jakub Jelinek jakub@redhat.com
Thu Jul 14 16:10:21 GMT 2011


On Thu, Jul 14, 2011 at 08:48:31AM -0700, David Anderson wrote:
> On 07/13/2011 11:20 AM, Jakub Jelinek wrote:
> There were two competing proposals, both allowing some space savings,
> and neither I nor the other proposer explained our respective
> concepts very well.
> So the committee adopted something simple that would work.   Yes, it takes
> far too much space.
> 
> M. Eager's comments are right on, but in addition, I think it is clear we
> would expect some real numbers (not guessed numbers)
> showing the space advantage for real applications of any
> proposed revision.  I guess this is obvious :-)

The real numbers were given in the mail I've posted URL to,
in particular e.g. on x86_64-linux cc1plus:
old:
-rwxrwxr-x. 1 jakub jakub 484483231 Jul 13 12:43 cc1plus
  [12] .text             PROGBITS        00000000004886e0 0886e0 df7938 00  AX  0   0 16
  [26] .debug_aranges    PROGBITS        0000000000000000 1239215 00be90 00      0   0  1
  [27] .debug_info       PROGBITS        0000000000000000 12450a5 276ae23 00      0   0  1
  [28] .debug_abbrev     PROGBITS        0000000000000000 39afec8 08bb08 00      0   0  1
  [29] .debug_line       PROGBITS        0000000000000000 3a3b9d0 47be2d 00      0   0  1
  [30] .debug_str        PROGBITS        0000000000000000 3eb77fd 0faa87 01  MS  0   0  1
  [31] .debug_loc        PROGBITS        0000000000000000 3fb2284 2e56f19 00      0   0  1
  [32] .debug_macinfo    PROGBITS        0000000000000000 6e0919d 154a7e83 00      0   0  1
  [33] .debug_ranges     PROGBITS        0000000000000000 1c2b1020 9fed80 00      0   0  1
new:
-rwxrwxr-x. 1 jakub jakub 130126820 Jul 13 18:05 cc1plus
  [12] .text             PROGBITS        00000000004886e0 0886e0 df8538 00  AX  0   0 16
  [26] .debug_aranges    PROGBITS        0000000000000000 1239fb5 00be90 00      0   0  1
  [27] .debug_info       PROGBITS        0000000000000000 1245e45 276c42e 00      0   0  1
  [28] .debug_abbrev     PROGBITS        0000000000000000 39b2273 08bb0e 00      0   0  1
  [29] .debug_line       PROGBITS        0000000000000000 3a3dd81 491054 00      0   0  1
  [30] .debug_str        PROGBITS        0000000000000000 3ecedd5 2865fe 01  MS  0   0  1
  [31] .debug_loc        PROGBITS        0000000000000000 41553d3 2e5a185 00      0   0  1
  [32] .debug_macinfo    PROGBITS        0000000000000000 6faf558 110100 00      0   0  1
  [33] .debug_ranges     PROGBITS        0000000000000000 70bf658 9ffaf0 00      0   0  1
The binaries aren't 100% the same as can be seen on the .text difference,
the difference in between them is the patch that implements this change,
noise in the overall numbers though.

	Jakub




More information about the Dwarf-discuss mailing list