[PATCH] RISC-V: make EFI app testcase consistent

Jan Beulich jbeulich@suse.com
Fri May 8 13:00:25 GMT 2026


Along the lines of what 43720b0cdd2a ("RISC-V: avoid ld crashes due to
bogus use by testcases") did, options passed to the assembler want to fit
those passed to the linker.

--- a/binutils/testsuite/binutils-all/riscv/pei-riscv64.d
+++ b/binutils/testsuite/binutils-all/riscv/pei-riscv64.d
@@ -1,4 +1,4 @@
-#as: -march=rv64gc -mabi=lp64d
+#as: -march=rv64gc -mabi=lp64d -mlittle-endian
 #ld: -m elf64lriscv -e0
 #PROG: objcopy
 #objcopy: -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela -j .rel.* -j .rela.* -j .rel* -j .rela* -j .reloc --output-target=pei-riscv64-little


More information about the Binutils mailing list