RISC-V: Fix weak symbols with medany and explicit relocs.
authorJim Wilson <jimw@sifive.com>
Tue, 25 Sep 2018 22:52:38 +0000 (22:52 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 25 Sep 2018 22:52:38 +0000 (15:52 -0700)
commitad117173a0d8a5412bc2b9fb99e2c9b1cb4036af
treedc6bd6677ec3a060c251232a8106b1431063ae65
parentc7813484bc9fe2c578d7538d0a9e286bf2e64599
RISC-V: Fix weak symbols with medany and explicit relocs.

gcc/
* config/riscv/riscv.c (riscv_split_symbol): Mark auipc label as weak
when target symbol is weak.

gcc/testsuite/
* gcc.target/riscv/weak-1.c: New.

From-SVN: r264586
gcc/ChangeLog
gcc/config/riscv/riscv.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/riscv/weak-1.c [new file with mode: 0644]