Bug 27434

Summary: [dwz, dwarf5] .debug_str_offsets support
Product: dwz Reporter: Mark Wielaard <mark>
Component: defaultAssignee: Nobody <nobody>
Status: NEW ---    
Severity: enhancement CC: dwz, sam, vries, yumeyao
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 24726    

Description Mark Wielaard 2021-02-18 14:42:21 UTC
Handle DW_FORM_strx[1234] and .debug_str_offsets, DW_AT_str_offsets_base

Note that DW_FORM_strx can also be used in .debug_macro

It is also allowed in vendor-defined content descriptions of .debug_line (but the spec is a little ambiguous on whether that is only allowed in .debug_line.dwo, or also in regular .debug_line content descriptions.

I don't believe any producer currently uses them in .debug_macro or .debug_line though, so for now that can probably be ignored.
Comment 1 YumeYao 2025-09-01 08:19:43 UTC
I can confirm recent clang/llvm are taking use of .debug_str_offsets and dwz fails with binaries with this section:

dwz: xxxx: Unknown debugging section .debug_str_offsets