Remove some custom sections from RISC-V's default linker scripts
authorPalmer Dabbelt <palmer@dabbelt.com>
Fri, 30 Dec 2016 01:29:53 +0000 (17:29 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Mon, 9 Jan 2017 17:12:20 +0000 (09:12 -0800)
commit6ec11ab97ab47ec4a22118e5b1c77df567796002
tree406b8b88e75cbea56b9ea095f62ef44c029ef4d2
parentcd6581da62c32a391f9a4c2c5d248a11aa6fa8f7
Remove some custom sections from RISC-V's default linker scripts

This was added so compressed loads could have smaller offsets for
accessing the data section, but the result was that writable sections
ended up in INITIAL_READONLY_SECTIONS.  This is a bad idea.  The fix is
to just remove this micro-optimization.

Thanks to Alan Morda for finding the problem!

ld/ChangeLog

2017-01-09  Palmer Dabbelt <palmer@dabbelt.com>
            Kito Cheng <kito.cheng@gmail.com>

        * emulparams/elf32lriscv-defs.sh (INITIAL_READONLY_SECTIONS):
        Removed.
        (SDATA_START_SYMBOLS): Likewise.
gas/ChangeLog
ld/emulparams/elf32lriscv-defs.sh