]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: avoid ld crashes due to bogus use by testcases
authorJan Beulich <jbeulich@suse.com>
Fri, 12 Dec 2025 07:06:41 +0000 (08:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 12 Dec 2025 07:06:41 +0000 (08:06 +0100)
commit43720b0cdd2a2171ef7125bb1572e9daf7d88f07
treede35158a54569e4b61d86b785f88d68e5de37bd8
parentf153f575c8bd1971574a3a5c5a436a55e01da802
RISC-V: avoid ld crashes due to bogus use by testcases

Specifying a little-endian emulation isn't very helpful when the target is
big-endian (and hence gas defaults to that). Surely the linker better
wouldn't crash when invoked like this, but making sure of this isn't the
purpose of any of these tests (afaict). Make assembly output match linker
options.

With this the ld testsuite completes successfully for me. binutils and gas
testsuites still have issues.
29 files changed:
ld/testsuite/ld-riscv-elf/align-small-region.d
ld/testsuite/ld-riscv-elf/code-model-medany-01.d
ld/testsuite/ld-riscv-elf/code-model-medany-02.d
ld/testsuite/ld-riscv-elf/code-model-medany-weakref-01.d
ld/testsuite/ld-riscv-elf/code-model-medany-weakref-02.d
ld/testsuite/ld-riscv-elf/code-model-medlow-01.d
ld/testsuite/ld-riscv-elf/code-model-medlow-02.d
ld/testsuite/ld-riscv-elf/code-model-medlow-weakref-01.d
ld/testsuite/ld-riscv-elf/code-model-medlow-weakref-02.d
ld/testsuite/ld-riscv-elf/code-model-relax-medany-01.d
ld/testsuite/ld-riscv-elf/code-model-relax-medany-02.d
ld/testsuite/ld-riscv-elf/code-model-relax-medany-weakref-01.d
ld/testsuite/ld-riscv-elf/code-model-relax-medany-weakref-02.d
ld/testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d
ld/testsuite/ld-riscv-elf/code-model-relax-medlow-01.d
ld/testsuite/ld-riscv-elf/code-model-relax-medlow-02.d
ld/testsuite/ld-riscv-elf/code-model-relax-medlow-weakref-01.d
ld/testsuite/ld-riscv-elf/code-model-relax-medlow-weakref-02.d
ld/testsuite/ld-riscv-elf/pcrel-reloc-abs-nopie.d
ld/testsuite/ld-riscv-elf/pcrel-reloc-abs-pie.d
ld/testsuite/ld-riscv-elf/pcrel-reloc-rel-nopie.d
ld/testsuite/ld-riscv-elf/pcrel-reloc-rel-pie.d
ld/testsuite/ld-riscv-elf/property-combine-and-1.d
ld/testsuite/ld-riscv-elf/property-combine-and-2.d
ld/testsuite/ld-riscv-elf/property-combine-and-3.d
ld/testsuite/ld-riscv-elf/property-zicfilp-unlabeled.d
ld/testsuite/ld-riscv-elf/property-zicfiss.d
ld/testsuite/ld-riscv-elf/uleb128.d
ld/testsuite/ld-riscv-elf/zicfilp-unlabeled-plt.d