[Bug gas/29451] New: gas-2.39 started adding 0-sized DIEs to functions without .size
https://sourceware.org/bugzilla/show_bug.cgi?id=29451 Bug ID: 29451 Summary: gas-2.39 started adding 0-sized DIEs to functions without .size Product: binutils Version: 2.39 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: slyich at gmail dot com Target Milestone: --- Discovered in https://sourceware.org/PR29450 where gas-2.38 did not attach 0-sized DIE for glibc's _init assembly-written function and gas-2.39 did. Simple reproducer: $ cat crti.S.S .section .init,"ax",@progbits .p2align 2 .globl _init .hidden _init .type _init, @function _init: .section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat .globl __x86.get_pc_thunk.bx .hidden __x86.get_pc_thunk.bx .p2align 4 .type __x86.get_pc_thunk.bx,@function __x86.get_pc_thunk.bx: ud2 .size __x86.get_pc_thunk.bx, . - __x86.get_pc_thunk.bx .previous ud2 $ as-2.39 --gdwarf2 --32 -o crti.o crti.S.S $ readelf -aW --debug-dump crti.o <0>: Abbrev Number: 1 (DW_TAG_compile_unit) DW_AT_stmt_list : (data4) 0x0 <10> DW_AT_ranges : (data4) 0x0 <14> DW_AT_name: (strp) (offset: 0x0): crti.S.S <18> DW_AT_comp_dir: (strp) (offset: 0x9): /home/slyfox/dev/bugs/binutils-2.39-crti-size/delta <1c> DW_AT_producer: (strp) (offset: 0x3d): GNU AS 2.39 <20> DW_AT_language: (data2) 32769(MIPS assembler) <1><22>: Abbrev Number: 2 (DW_TAG_subprogram) <23> DW_AT_name: (strp) (offset: 0x49): _init <27> DW_AT_external: (flag) 1 <28> DW_AT_low_pc : (addr) 0x0 <2c> DW_AT_high_pc : (addr) 0x0 <1><30>: Abbrev Number: 2 (DW_TAG_subprogram) <31> DW_AT_name: (strp) (offset: 0x4f): __x86.get_pc_thunk.bx <35> DW_AT_external: (flag) 1 <36> DW_AT_low_pc : (addr) 0x0 <3a> DW_AT_high_pc : (addr) 0x2 <1><3e>: Abbrev Number: 0 $ as-2.38 --gdwarf2 --32 -o crti.o crti.S.S $ readelf -aW --debug-dump crti.o <0>: Abbrev Number: 1 (DW_TAG_compile_unit) DW_AT_stmt_list : (data4) 0x0 <10> DW_AT_ranges : (data4) 0x0 <14> DW_AT_name: (strp) (offset: 0x0): crti.S.S <18> DW_AT_comp_dir: (strp) (offset: 0x9): /home/slyfox/dev/bugs/binutils-2.39-crti-size/delta <1c> DW_AT_producer: (strp) (offset: 0x3d): GNU AS 2.38 <20> DW_AT_language: (data2) 32769(MIPS assembler) Would it be fair to say it's a bug to assign zero size here via DW_AT_low_pc / DW_AT_high_pc? -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size
https://sourceware.org/bugzilla/show_bug.cgi?id=29451 Sergei Trofimovich changed: What|Removed |Added See Also||https://sourceware.org/bugz ||illa/show_bug.cgi?id=29450 -- You are receiving this mail because: You are on the CC list for the bug.
Issue 48885 in oss-fuzz: binutils:fuzz_objdump_safe: Null-dereference READ in read_and_display_attr_value
Updates: Labels: -restrict-view-commit Comment #3 on issue 48885 by sheriffbot: binutils:fuzz_objdump_safe: Null-dereference READ in read_and_display_attr_value https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48885#c3 This bug has been fixed. It has been opened to the public. - Your friendly Sheriffbot -- You received this message because: 1. You were specifically CC'd on the issue You may adjust your notification preferences at: https://bugs.chromium.org/hosting/settings Reply to this email to add a comment.
Issue 49067 in oss-fuzz: binutils:fuzz_objdump: Heap-buffer-overflow in bfd_getl64
Updates: Labels: -restrict-view-commit Comment #3 on issue 49067 by sheriffbot: binutils:fuzz_objdump: Heap-buffer-overflow in bfd_getl64 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49067#c3 This bug has been fixed. It has been opened to the public. - Your friendly Sheriffbot -- You received this message because: 1. You were specifically CC'd on the issue You may adjust your notification preferences at: https://bugs.chromium.org/hosting/settings Reply to this email to add a comment.
[Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size
https://sourceware.org/bugzilla/show_bug.cgi?id=29451 Martin Liska changed: What|Removed |Added CC||mliska at suse dot cz -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gas/29451] gas-2.39 started adding 0-sized DIEs to functions without .size
https://sourceware.org/bugzilla/show_bug.cgi?id=29451 Martin Liska changed: What|Removed |Added CC||jbeulich at suse dot com --- Comment #1 from Martin Liska --- Started with: commit 591cc9fbbfd6d51131c0f1d4a92e7893edcc7a28 Author: Jan Beulich Date: Thu Apr 7 08:18:00 2022 +0200 gas/Dwarf: record functions -- You are receiving this mail because: You are on the CC list for the bug.