RISC-V: Fix --wrap and relaxation conflict.
authorJim Wilson <jimw@sifive.com>
Fri, 2 Feb 2018 20:43:09 +0000 (12:43 -0800)
committerJim Wilson <jimw@sifive.com>
Fri, 2 Feb 2018 20:43:09 +0000 (12:43 -0800)
commit7f02625eb48105e100d2da58091d56978ed041ef
tree0c1e3dec2610638bd0f974b2d368982dfcd8c780
parent0625771b9e29116dc1fb0b597501f18e4bb0e18c
RISC-V: Fix --wrap and relaxation conflict.

bfd/
PR ld/22756
* elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
If link_info->wrap_hash, check for a duplicate symbol and ignore.
(_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
Pass new argument to riscv_relax_delete_bytes.
(_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise.  Remove
ATTRIBUTE_UNUSED from link_info parameter.
bfd/ChangeLog
bfd/elfnn-riscv.c