bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/28303] objdump crashes in riscv_elf_add_sub_reloc


From: amodra at gmail dot com
Subject: [Bug binutils/28303] objdump crashes in riscv_elf_add_sub_reloc
Date: Tue, 07 Sep 2021 00:46:06 +0000

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

--- Comment #4 from Alan Modra <amodra at gmail dot com> ---
The canonical check is

  octets = reloc_entry->address * bfd_octets_per_byte (abfd, input_section);
  if (!bfd_reloc_offset_in_range (reloc_entry->howto, abfd,
                                 input_section, octets))
    return bfd_reloc_outofrange;

For riscv you can leave out bfd_octets_per_byte, or use an OCTETS_PER_BYTE
macro defined to 1 as I do for ppc.

-- 
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]