RISC-V: Make unique SECCAT_SRODATA names start with .srodata (not .sdata2)
authorKeith Packard <keithp@keithp.com>
Wed, 29 Apr 2020 16:49:56 +0000 (09:49 -0700)
committerJim Wilson <jimw@sifive.com>
Tue, 12 May 2020 23:12:10 +0000 (16:12 -0700)
commitadce62f53d8ad00e8110a6a2de7962d7a850de16
treea9eef37c4d3549327b5424e3f6b84df349e562da
parentde6320a81695800de0f0f5fc3e4c6487a52cd430
RISC-V: Make unique SECCAT_SRODATA names start with .srodata (not .sdata2)

default_unique_section uses ".sdata2" as a prefix for SECCAT_SRODATA
unique sections, but RISC-V uses ".srodata" instead. Override the
TARGET_ASM_UNIQUE_SECTION function to catch this case, allowing the
default to be used for all other sections.

Signed-off-by: Keith Packard <keithp@keithp.com>
gcc/
* config/riscv/riscv.c (riscv_unique_section): New.
(TARGET_ASM_UNIQUE_SECTION): New.
gcc/ChangeLog
gcc/config/riscv/riscv.c