https://sourceware.org/bugzilla/show_bug.cgi?id=21342

            Bug ID: 21342
           Summary: two member access within null pointer
           Product: binutils
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: ago at gentoo dot org
  Target Milestone: ---

To reproduce this bug you need to compile binutils with -fsanitize=undefined

# echo "int main () { return 0; }" > test.c                                     
# cc test.c -o test
/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/bfd/elflink.c:124:12:
runtime error: member access within null pointer of type 'struct
elf_link_hash_entry'                            

/tmp/portage/sys-devel/binutils-2.28/work/binutils-2.28/bfd/elflink.c:11979:58:
runtime error: member access within null pointer of type 'elf_section_list'
(aka 'struct elf_section_list')    

# gcc -v
gcc version 4.9.4 (Gentoo 4.9.4 p1.0, pie-0.6.4)

# ld -v
GNU ld (Gentoo 2.28 p1.0) 2.28

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to