A.3. Changes in elfutils

Red Hat Developer Toolset 2.1 is distributed with elfutils 0.157, which provides a number of bug fixes and feature enhancements over the Red Hat Enterprise Linux system version and version 0.155 included in Red Hat Developer Toolset 2.0. Below is a comprehensive list of new features in this release.

A.3.1. Changes Since Red Hat Developer Toolset 2.0

The following features have been added since the release of elfutils included in Red Hat Developer Toolset 2.0:
  • The libdw library now supports new functions dwarf_getlocations(), dwarf_getlocation_attr(), and dwarf_getlocation_die().
  • The dwarf_getlocation() function from the libdw library now supports new DWARF GNU extension opcodes DW_OP_GNU_parameter_ref, DW_OP_GNU_convert, DW_OP_GNU_reinterpret, DW_OP_GNU_regval_type, DW_OP_GNU_entry_value, DW_OP_GNU_deref_type, and DW_OP_GNU_const_type.
  • The dwfl_module_addrsym() function from the libdw library now returns the STB_GLOBAL symbols in preference to STB_WEAK.
  • The dwfl_report_elf() function from the libdw library now accepts an additional parameter. This new parameter can be used to configure whether the start address specified in another parameter is an absolute address or a bias relative to the p_vaddr pointer from the program header of the given ELF file.
  • Functions dwfl_module_getsymtab(), dwfl_module_getsym(), dwfl_module_addrsym(), and dwfl_module_addrname() from the libdw library are now aware of the existence of MiniDebugInfo files embedded in main ELF files and consult them when looking for symbols.
  • The dwfl_core_file_report() function from the libdw library now reads the chain from the DT_DEBUG entry before attempting to use other module discovery methods.
  • The eu-readelf utility now understands core note type values NT_ARM_TLS, NT_ARM_VFP, NT_ARM_HW_BREAK, NT_ARM_HW_WATCH, NT_SIGINFO, and NT_FILE and converts them to a human-readable form. It also understands .gdb_index sections version 8.
  • The eu-readelf utility now supports the following new command line options:
    • The --elf-section option can be used to inspect an embedded ELF file.
    • The --unresolved-address-offsets option or its short variant -U can be used to dump addresses in ELF files without resolving them to symbols.
    • The --debug-dump=decodeline option can be used to dump a .debug_line section in a human-readable, expanded format. In contrast, the original behavior of --debug-dump=aranges can now be achieved by using the --debug-dump=decodedaranges option, and the default formatting of the .debug_aranges section is now the same as in the ELF file.
  • The eu-addr2line utility now supports a new command line option --inlines (and its short variant -i), which can be used to display all inlined subroutines of a particular address.