]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/ChangeLog
RISC-V: Fix weak function call reloc overflow on llvm build.
authorJim Wilson <jimw@sifive.com>
Mon, 6 Jan 2020 23:34:50 +0000 (15:34 -0800)
committerJim Wilson <jimw@sifive.com>
Mon, 6 Jan 2020 23:34:50 +0000 (15:34 -0800)
commit85f783647061e58968ecdc516137d8df9f2d5e16
treef746bf0ec31629fbd171c10bc960c27d0571f530
parent85e290dc1252d77e726c0892b197be449b34bd16
RISC-V: Fix weak function call reloc overflow on llvm build.

bfd/
PR 25205
* elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
check for !bfd_link_pic (info).
<R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
<R_RISCV_JAL>: Add comment.
(_bfd_riscv_relax_section): For plt.offset check, add check for
bfd_link_pic (info).  Add comment.

Change-Id: Ie769bc3d5adf096a51df5cc12efe3d50e80acb8f
bfd/ChangeLog
bfd/elfnn-riscv.c