[PATCH] ld: testsuite: xfail ld-elf/compress1a etc. on Solaris/sparcv9 [PR25802]

Jan Beulich jbeulich@suse.com
Fri Oct 10 06:35:24 GMT 2025
On 29.09.2025 14:59, Rainer Orth wrote:
> 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.

I'm not very happy about such XFAILs, and other than Nick had requested
in the bug report they're also entirely uncommented. Plus as per comment
9 there (post-dating the patch submission afaict), the problem looks
like it wants dealing with differently anyway.

Jan


More information about the Binutils mailing list