RISC-V: Force variables to .data for code_elim.
authorJim Wilson <jimw@sifive.com>
Tue, 6 Nov 2018 19:06:23 +0000 (11:06 -0800)
committerJim Wilson <jimw@sifive.com>
Tue, 6 Nov 2018 19:06:23 +0000 (11:06 -0800)
commit109be305bb6acf7604f95411f333549f33a673bb
tree05eb848587c9c17aa17f6d7afe0f598242a8d7bf
parentf11acc5ec0b9cd35e3582b8f9eef6be5d3c59ad7
RISC-V: Force variables to .data for code_elim.

RISC-V puts a global variable in .sdata by default, which causes the
add-symbol-file commands with -s .data to fail as there is no .data section.
This fixes 3 testsuite failures.

gdb/testsuite/
* gdb.base/code_elim.exp: For riscv, set additional_flags
to include -msmall-data-limit=0.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/code_elim.exp