[Dwarf-Discuss] Doubts in DWARF spec 4

Malu Sasi malu.sasi at nestgroup.net
Mon Nov 11 00:44:44 PST 2013


 

Hi All,

 

We are having some doubts while building elf's using new GCC (4.8.1)
with DWARF-4. When we build elfs with "-gdwarf-4", and analyzed the
parsed details using "readelf", 

 

1.       It was seen that the ".debug_line" section always shows that
the version is "2". But from appendix F (DWARF 4 spec, shown below), we
expect this to be of version 4. 

 

Appendix F - DWARF Section Version Numbers (informative) 

 

   Can anyone please clarify why version number of ".debug_line "
section is 2 itself instead of "4". Is it that we need to manually add
some other option while building elf?

 

2.       Also, the new section ".debug_types"  was not there, when the
elf was built with option "-fdebug-types-section".  We were using a
simple CPP program without any structures/enum etc in it. Could this be
the reason?

 

 

Expecting your swift response....

 

 

Regards,

Malu

 

 

***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/private.cgi/dwarf-discuss-dwarfstd.org/attachments/20131111/b6866bc4/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 41913 bytes
Desc: image001.jpg
URL: <http://lists.dwarfstd.org/private.cgi/dwarf-discuss-dwarfstd.org/attachments/20131111/b6866bc4/attachment-0001.jpeg>


More information about the Dwarf-Discuss mailing list