bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/20636] [arm] ld crash when linking glibc unwind code


From: nszabolcs at gmail dot com
Subject: [Bug ld/20636] [arm] ld crash when linking glibc unwind code
Date: Tue, 27 Sep 2016 10:48:48 +0000

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

--- Comment #1 from Szabolcs Nagy <nszabolcs at gmail dot com> ---
during bfd_elf_final_link:

bfd/elflink.c:11409 bfd_elf_final_link
        first sets reldata->count to 2
bfd/elf32-arm.c:19031 elf32_arm_count_output_relocs
        counts 3 output relocs
bfd/elflink.c:2468 _bfd_elf_link_size_reloc_section
        allocates 3 entry for reldata->hdr.contents 
        allocates 2 entry for reldata->hash
bfd/elf32-arm.c:19336 emit_relocs
        sets reldata->count to 3
bfd/elflink.c:8406 elf_link_adjust_relocs
        assumes reldata->count (3) is the size of reldata->hashes

so either the hash allocation is incorrect in
_bfd_elf_link_size_reloc_section or the relocation
counting is wrong.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]