[PATCH] ld: testsuite: xfail ld-elf/compress1a etc. on Solaris/sparcv9 [PR25802]
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Mon Sep 29 12:59:34 GMT 2025
A couple of tests FAIL on Solaris/sparcv9:
FAIL: ld-elf/compress1a
FAIL: ld-elf/compressed1a
FAIL: ld-elf/eh5
FAIL: --gc-sections with multiple debug sections for a function section
The symptom is always the same:
tmpdir/compress1.o:(.debug_info+0x10): relocation truncated to fit: R_SPARC_UA32 against `.text'
and several more. However, the tests link just fine with Solaris ld.
As analysed in the PR, this patch xfail's the first three and runs the
last with Ttext=0x0x80000000 (the address used in
/usr/lib/ld/sparcv9/map.below4G) to allow the link to succeed.
Tested on sparcv9-sun-solaris2.11.
Ok for trunk?
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
2025-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
ld:
PR ld/25802
* testsuite/ld-elf/compress1a.d: xfail on sparcv9-*-solaris2*.
* testsuite/ld-elf/compressed1a.d: Likewise.
* testsuite/ld-elf/eh5.d: Likewise.
* testsuite/ld-gc/gc.exp ("all-debug-sections"): Run with
-Ttext=0x0x80000000 added to LDFLAGS.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2sparc-ld-testsuite-compress1a-sparcv9.patch
Type: text/x-patch
Size: 1848 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250929/6cddd91a/attachment.bin>
More information about the Binutils
mailing list