[PATCH] ld: RISC-V: Select the matching emulation for Zcmt tests

Jiawei jiawei@iscas.ac.cn
Thu Nov 26 10:36:06 GMT 2026


On 2026/11/26 16:39, Kito Cheng wrote:
> LGTM
>
> Jiawei <jiawei@iscas.ac.cn> 於 2026年11月26日週四 下午1:27寫道:
>> Most table-jump tests assemble RV64 objects.  On riscv32-elf the
>> linker defaults to ELF32 and rejects those objects before the tests
>> reach the relaxation or inspect the jump table.
>>
>> Select LP64 for this group and use the target byte order for the
>> cases that specify their own XLEN.  Keep the explicit little- and
>> big-endian tests in their respective emulations.
>>
>> Use objdump -z in tests that inspect sparse RV64 jump tables.  On a
>> big-endian target, skipping zero bytes can resume halfway through an
>> eight-byte entry.  Check the empty slots around the gap as well as
>> the targets in slots 0 and 32.
>>
>> Reported-by: Alan Modra <amodra@gmail.com>
>> Link: https://sourceware.org/pipermail/binutils/2026-November/152915.html

Pushed, thanks for the review and report.

Thanks,
Jiawei



More information about the Binutils mailing list