[PATCH v1] LoongArch: Improve the reliability of test cases
WANG Xuerui
i.swmail@xen0n.name
Mon Aug 18 07:57:26 GMT 2025
Hi,
On 8/18/25 11:08, Lulu Cai wrote:
> Fix PR ld/31101
>
> In some distributions, GCC enables --as-needed by default, which
> may prevent linking to necessary dynamic libraries and cause test
> failures. When tests require the host GCC, use the --no-as-needed
> option and place the necessary dynamic libraries after the object
> files. This prevents test failures and improves the test case
> reliability.
> ---
> ld/testsuite/ld-loongarch-elf/pic.exp | 30 +++++++++++++++------------
> 1 file changed, 17 insertions(+), 13 deletions(-)
I just confirmed this change made `make check-ld` pass on Gentoo. Thanks!
Tested-by: WANG Xuerui <git@xen0n.name>
More information about the Binutils
mailing list