Bug 28981 - objdump: objdump: Warning: Unrecognized form: 0x22
Summary: objdump: objdump: Warning: Unrecognized form: 0x22
Status: ASSIGNED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.38
: P2 normal
Target Milestone: ---
Assignee: Nick Clifton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-19 16:00 UTC by Khem Raj
Modified: 2022-06-29 12:15 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2022-04-01 00:00:00


Attachments
test case (47.10 KB, application/gzip)
2022-03-19 16:00 UTC, Khem Raj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Khem Raj 2022-03-19 16:00:31 UTC
Created attachment 14025 [details]
test case

attached binary is generated by clang-14 with dwarf5 debug info. this warning appears with objdump

objdump -p dhcrelay
...
objdump: Warning: Unrecognized form: 0x22       
...
Comment 1 Sourceware Commits 2022-04-06 13:44:18 UTC
The master branch has been updated by Nick Clifton <nickc@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=19c26da69d68d5d863f37c06ad73ab6292d02ffa

commit 19c26da69d68d5d863f37c06ad73ab6292d02ffa
Author: Nick Clifton <nickc@redhat.com>
Date:   Wed Apr 6 14:43:37 2022 +0100

    Add code to display the contents of .debug_loclists sections which contain offset entry tables.
    
            PR 28981
            * dwarf.c (fetch_indexed_value): Rename to fecth_indexed_addr and
            return the address, rather than a string.
            (fetch_indexed_value): New function - returns a value indexed by a
            DW_FORM_loclistx or DW_FORM_rnglistx form.
            (read_and_display_attr_value): Add support for DW_FORM_loclistx
            and DW_FORM_rnglistx.
            (process_debug_info): Load the loclists and rnglists sections.
            (display_loclists_list): Add support for DW_LLE_base_addressx,
            DW_LLE_startx_endx, DW_LLE_startx_length and
            DW_LLE_default_location.
            (display_offset_entry_loclists): New function.  Displays a
            .debug_loclists section that contains offset entry tables.
            (display_debug_loc): Call the new function.
            (display_debug_rnglists_list): Add support for
            DW_RLE_base_addressx, DW_RLE_startx_endx and DW_RLE_startx_length.
            (display_debug_ranges): Display the contents of the section's
            header.
            * dwarf.h (struct debug_info): Add loclists_base field.
            * testsuite/binutils-all/dw5.W: Update expected output.
            * testsuite/binutils-all/x86-64/pr26808.dump: Likewise.