https://sourceware.org/bugzilla/show_bug.cgi?id=33738
Zheng Bao <fishbaoz at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fishbaoz at hotmail dot com
--- Comment #1 from Zheng Bao <fishbaoz at hotmail dot com> ---
1. -w pubnames is not correct. It should be -w --debug-dump=pubnames
2. Latest binutils is 2.45.1. There is no tag or branch 2.46 in the
https://sourceware.org/git/binutils-gdb.git
3. Below is what I got with the same command.
$ ../binutils-gdb/build245/binutils/readelf -w --debug-dump=pubnames
--dwarf-depth 2 PoC/SIGABRT_2
readelf: Warning: Section 25 has an out of range sh_link value of 61440
readelf: Error: Section 5 has invalid sh_entsize of 3000000
readelf: Error: (Using the expected size of 18 for the rest of this dump)
readelf: Warning: Unrecognized form: 0
readelf: Warning: DIE at offset 0x44 refers to abbreviation number 72 which
does not exist
Contents of the .debug_abbrev section:
Number TAG (0)
1 DW_TAG_compile_unit [has children]
DW_AT_producer DW_FORM_strx1
DW_AT_language DW_FORM_data2
DW_AT_name DW_FORM_strx1
DW_AT_str_offsets_base DW_FORM_sec_offset
DW_AT_stmt_list DW_FORM_sec_offset
DW_AT_comp_dir DW_FORM_strx1
DW_AT_low_pc DW_FORM_addrx
DW_AT_high_pc DW_FORM_data4
DW_AT_addr_base DW_FORM_sec_offset
DW_AT_loclists_base DW_FORM_sec_offset
DW_AT value: 0 DW_FORM value: 0
2 DW_TAG_variable [no children]
DW_AT_name DW_FORM_strx1
DW_AT_type DW_FORM_ref4
DW_AT_external DW_FORM_flag_present
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data1
DW_AT_location DW_FORM_exprloc
DW_AT value: 0 DW_FORM value: 0
3 DW_TAG_array_type [has children]
DW_AT_type DW_FORM_ref4
DW_AT_linkage_name DW_FORM value: 0
Unknown AT value: 4 DW_FORM_implicit_const: 0
DW_AT_type DW_FORM_ref4
DW_AT_count DW_FORM_data1
DW_AT value: 0 DW_FORM value: 0
5 DW_TAG_const_type [no children]
DW_AT_type DW_FORM_ref4
DW_AT value: 0 DW_FORM value: 0
6 DW_TAG_immutable_type [no children]
DW_AT value: 0 DW_FORM value: 0
Number TAG (0x4c)
3 DW_TAG_catch_block [has children]
DW_AT_byte_size DW_FORM_data1
DW_AT_byte_size DW_FORM value: 0
DW_AT value: 0 DW_FORM_string
46 Unknown TAG value: 0x64 [has children]
DW_AT_threads_scaled Unknown FORM value: 75
DW_AT_pure Unknown FORM value: 5f
DW_AT_addr_base Unknown FORM value: 75
DW_AT_string_length_byte_size DW_FORM_block
DW_AT_discr_value DW_FORM value: 0
DW_AT_type DW_FORM_ref4
DW_AT_name DW_FORM_strx1
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data2
DW_AT value: 0 DW_FORM value: 0
10 DW_TAG_pointer_type [no children]
DW_AT value: 0 DW_FORM value: 0
11 DW_TAG_subprogram [no children]
DW_AT_low_pc DW_FORM_addrx
DW_AT_high_pc DW_FORM_data4
DW_AT_frame_base DW_FORM_exprloc
DW_AT_call_all_calls DW_FORM_flag_present
DW_AT_name DW_FORM_strx1
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data1
DW_AT_prototyped DW_FORM_flag_present
DW_AT_type DW_FORM_ref4
DW_AT_external DW_FORM_flag_present
DW_AT value: 0 DW_FORM value: 0
12 DW_TAG_subprogram [has children]
DW_AT_low_pc DW_FORM_addrx
DW_AT_high_pc DW_FORM_data4
DW_AT_frame_base DW_FORM_exprloc
DW_AT_call_all_calls DW_FORM_flag_present
DW_AT_name DW_FORM_strx1
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data1
DW_AT_prototyped DW_FORM_flag_present
DW_AT_type DW_FORM_ref4
DW_AT_external DW_FORM_flag_present
DW_AT value: 0 DW_FORM value: 0
13 DW_TAG_variable [no children]
DW_AT_location DW_FORM_loclistx
DW_AT_name DW_FORM_strx1
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data1
DW_AT_type DW_FORM_ref4
DW_AT value: 0 DW_FORM value: 0
14 DW_TAG_formal_parameter [no children]
DW_AT_location DW_FORM_loclistx
DW_AT_name DW_FORM_strx1
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data1
DW_AT_type DW_FORM_ref4
DW_AT value: 0 DW_FORM value: 0
15 DW_TAG_subprogram [has children]
DW_AT_low_pc DW_FORM_addrx
DW_AT_high_pc DW_FORM_data4
DW_AT_frame_base DW_FORM_exprloc
DW_AT_call_all_calls DW_FORM_flag_present
DW_AT_name DW_FORM_strx1
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data2
DW_AT_prototyped DW_FORM_flag_present
DW_AT_type DW_FORM_ref4
DW_AT_external DW_FORM_flag_present
DW_AT value: 0 DW_FORM value: 0
16 DW_TAG_formal_parameter [no children]
DW_AT_location DW_FORM_loclistx
DW_AT_name DW_FORM_strx1
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data2
DW_AT_type DW_FORM_ref4
DW_AT value: 0 DW_FORM value: 0
17 DW_TAG_subprogram [has children]
DW_AT_low_pc DW_FORM_addrx
DW_AT_high_pc DW_FORM_data4
DW_AT_frame_base DW_FORM_exprloc
DW_AT_call_all_calls DW_FORM_flag_present
DW_AT_name DW_FORM_strx1
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data2
DW_AT_prototyped DW_FORM_flag_present
DW_AT_external DW_FORM_flag_present
DW_AT value: 0 DW_FORM value: 0
Contents of the .debug_info section:
Compilation Unit @ offset 0:
Length: 0x107 (32-bit)
Version: 5
Unit Type: DW_UT_compile (1)
Abbrev Offset: 0
Pointer Size: 8
<0><c>: Abbrev Number: 1 (DW_TAG_compile_unit)
<d> DW_AT_producer : (indexed string: 0): char
<e> DW_AT_language : 12 (ANSI C99)
<10> DW_AT_name : (indexed string: 0x1): oversion 14.0.6
<11> DW_AT_str_offsets_base: 0x8
<15> DW_AT_stmt_list : 0
<19> DW_AT_comp_dir : (indexed string: 0x2):
/home/awen/git/DSGFuzz/benchmarks/binutils/build/zlhb
<1a> DW_AT_low_pc : (index: 0x1): 0
<1b> DW_AT_high_pc : 0x9c
<1f> DW_AT_addr_base : 0x8
<23> DW_AT_loclists_base: 0xc (location list)
<1><27>: Abbrev Number: 2 (DW_TAG_variable)
<28> DW_AT_name : (indexed string: 0x3): z_errmsg
<29> DW_AT_type : <0x32>
<2d> DW_AT_external : 1
<2d> DW_AT_decl_file : 1
<2e> DW_AT_decl_line : 13
<2f> DW_AT_location : (DW_OP_addrx <0>)
<1><32>: Abbrev Number: 3 (DW_TAG_array_type)
<33> DW_AT_type : <0x3e>
<37> DW_AT_linkage_name:readelf: Warning: Unrecognized form: 0
<38> Unknown AT value: 4: 0
<38> DW_AT_type : <0x4c>readelf: Warning: Unable to find entry for
abbreviation 8
<3c> DW_AT_count : 10
<1><3e>: Abbrev Number: 5 (DW_TAG_const_type)
<3f> DW_AT_type : <0x43>
<1><43>: Abbrev Number: 6 (DW_TAG_immutable_type)
<1><44>: Abbrev Number: 72
readelf: Warning: DIE at offset 0x44 refers to abbreviation number 72 which
does not exist
Contents of the .debug_str_offsets section:
Length: 0x5c
Version: 0x5
Index Offset [String]
0 00000000 cl.dwoversion 14.0.6
1 00000015 zutil.c
2 0000001d /home/awen/git/DSGFuzz/benchmarks/binutils/build/zlhb
3 00000053 z_errmsg
4 0000005c char
5 00000061 __ARRAY_SIZE_TYPE__
6 00000075 voidpf
7 0000007c zlibVersion
8 00000088 zlibCompileFlags
9 00000099 unsigned long
10 000000a7 uLong
11 000000ad zError
12 000000b4 zcalloc
13 000000bc zcfree
14 000000c3 flags
15 000000c9 err
16 000000cd int
17 000000d1 opaque
18 000000d8 items
19 000000de unsigned int
20 000000eb size
21 000000f0 ptr
Contents of the .debug_str section:
0x00000000 636c2e64 776f7665 7273696f 6e203134 cl.dwoversion 14
0x00000010 2e302e36 007a7574 696c2e63 002f686f .0.6.zutil.c./ho
0x00000020 6d652f61 77656e2f 6769742f 44534746 me/awen/git/DSGF
0x00000030 757a7a2f 62656e63 686d6172 6b732f62 uzz/benchmarks/b
0x00000040 696e7574 696c732f 6275696c 642f7a6c inutils/build/zl
0x00000050 6862007a 5f657272 6d736700 63686172 hb.z_errmsg.char
0x00000060 005f5f41 52524159 5f53495a 455f5459 .__ARRAY_SIZE_TY
0x00000070 50455f5f 00766f69 64706600 7a6c6962 PE__.voidpf.zlib
0x00000080 56657273 696f6e00 7a6c6962 436f6d70 Version.zlibComp
0x00000090 696c6546 6c616773 00756e73 69676e65 ileFlags.unsigne
0x000000a0 64206c6f 6e670075 4c6f6e67 007a4572 d long.uLong.zEr
0x000000b0 726f7200 7a63616c 6c6f6300 7a636672 ror.zcalloc.zcfr
0x000000c0 65650066 6c616773 00657272 00696e74 ee.flags.err.int
0x000000d0 006f7061 71756500 6974656d 7300756e .opaque.items.un
0x000000e0 7369676e 65642069 6e740073 697a6500 signed int.size.
0x000000f0 70747200 ptr.
readelf: Warning: Unrecognized form: 0
readelf: Warning: DIE at offset 0x44 refers to abbreviation number 72 which
does not exist
readelf: Warning: Unable to load/parse the .debug_info section, so cannot
interpret the .debug_addr section.
Raw dump of debug contents of section .debug_line:
Offset: 0
Length: 147
DWARF Version: 5
Address size (bytes): 8
Segment selector (bytes): 0
Prologue Length: 51
Minimum Instruction Length: 1
Maximum Ops per Instruction: 1
Initial value of 'is_stmt': 1
Line Base: -5
Line Range: 14
Opcode Base: 13
Opcodes:
Opcode 1 has 0 args
Opcode 2 has 1 arg
Opcode 3 has 1 arg
Opcode 4 has 1 arg
Opcode 5 has 1 arg
Opcode 6 has 0 args
Opcode 7 has 0 args
Opcode 8 has 0 args
Opcode 9 has 1 arg
Opcode 10 has 0 args
Opcode 11 has 0 args
Opcode 12 has 1 arg
The Directory Table (offset 0x53, lines 5, columns 24):
Entry (Unknown format content type 57) Dir (Unknown format content
type 0) (Unknown format content type 0) (Unknown format content type 0)
(Unknown format content type 234880767) (Unknown format content type 0)
(Unknown format content type 0) (Unknown format content type 0) (Unknown
format content type 0) (Unknown format content type 0) (Unknown format content
type 0) (Unknown format content type 0) (Unknown format content type 0)
(Unknown format content type 9) (Unknown format content type 0) (Unknown format
content type 0) (Unknown format content type 0) (Unknown format content
type 0) Time (Unknown format content type 74) MD5
Name Name
0readelf: Warning: DW_FORM_line_strp offset too big: 0x4a0a7800
(indirect line string, offset: 0x4a0a7800): <offset is too big>readelf:
Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
0readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0x2
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Warning: Unrecognized form: 0
readelf: Error: Unhandled data length: 0
Aborted (core dumped)
--
You are receiving this mail because:
You are on the CC list for the bug.