[Bug libdw/31447] New: Provide a public debug section relocation function
mark at klomp dot org
sourceware-bugzilla@sourceware.org
Sun Mar 3 12:19:09 GMT 2024
https://sourceware.org/bugzilla/show_bug.cgi?id=31447
Bug ID: 31447
Summary: Provide a public debug section relocation function
Product: elfutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libdw
Assignee: unassigned at sourceware dot org
Reporter: mark at klomp dot org
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
When opening an ET_REL file with dwarf_begin no relocations are resolved and no
error checking is done if that is necessary. Causing some functions to produce
errors or wrong results (because an index is wrongly assumed to be zero).
When opening such a file through libdwfl we do resolve all cross-debug-section
relocations using __libdwfl_relocate.
It would be good to make this a public function. Maybe through libdwelf
dwelf_relocation_debug_sections (Elf *elf). So users can make sure ET_REL files
can be handled by libdw.
And maybe add a check/flag in dwarf_begin so an error can be produced if a
relocation value is needed for a correct result.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel
mailing list