Readelf now handles implicit const in .debug_names sections.
Readelf now correctly parses DWARF debug information with DW_FORM_implicit_const entries in the .debug_names section.
Readelf now supports DW_FORM_implicit_const entries in the .debug_names section of DWARF debug information. Previously, readelf would fail to parse debug information containing this form, leading to errors and incomplete output. This update allows readelf to correctly interpret the debug information and display the relevant symbols.
In Details
This commit modifies binutils/dwarf.c to add support for DW_FORM_implicit_const when displaying the .debug_names section. This DWARF form represents an implicit constant value. Readelf, used for examining object files, previously lacked support, leading to parse errors when encountering it in .debug_names abbreviation tables.
For Context
DWARF is a debugging format used to store information about a program's source code within the compiled executable. This allows debuggers to map machine code back to the original source. The .debug_names section is a part of DWARF that provides a symbol table-like structure for debugging information. This commit enables the readelf utility to correctly parse and display debugging information that uses a specific type of constant (DW_FORM_implicit_const) within the .debug_names section.