RISC-V: Adjust __global_pointer$ value to reduce code size.
authorJim Wilson <jimw@sifive.com>
Mon, 15 Oct 2018 23:00:28 +0000 (16:00 -0700)
committerJim Wilson <jimw@sifive.com>
Mon, 15 Oct 2018 23:00:28 +0000 (16:00 -0700)
commit640be958cd6bdc339211f29851e69a297033e172
treee201af1bf07aa6e5bf4062e1333b7171caab7e93
parent0e0dd7f1e8b64efff9a981d0421ffeaeff70cd20
RISC-V: Adjust __global_pointer$ value to reduce code size.

ld/
* emulparams/elf32lriscv-defs.sh (DATA_START_SYMBOLS): New.
(SDATA_START_SYMBOLS): Define __SDATA_BEGIN__.  Don't define
__global_pointer$.
(OTHER_END_SYMBOLS): New.  Define __global_pointer$.
* testsuite/ld-riscv-elf/pcrel-lo-addend-2.d (#ld): Add --no-relax.
ld/ChangeLog
ld/emulparams/elf32lriscv-defs.sh
ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2.d