RISC-V: Fix ld-elf/pr22269* testcases.
authorJim Wilson <jimw@sifive.com>
Fri, 18 May 2018 20:05:21 +0000 (13:05 -0700)
committerJim Wilson <jimw@sifive.com>
Fri, 18 May 2018 20:06:19 +0000 (13:06 -0700)
commit6487709f3fca687ba1420b6487db5cd1e7cf8cde
treea7320cd19ae82136438809bbf71b7ffd810d69c0
parentd3d02dee8d33ef46ed91b3e87ea1b377b14ec845
RISC-V: Fix ld-elf/pr22269* testcases.

bfd/
* elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
UNDEFWEAK_NO_DYNAMIC_RELOC is true.
(riscv_elf_relocate_section): Don't generate dynamic relocation if
UNDEFWEAK_NO_DYNAMIC_RELOC is true.
(riscv_elf_finish_dynamic_symbol): Likewise.
bfd/ChangeLog
bfd/elfnn-riscv.c