https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25802
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Rainer Orth <[email protected]>: https://gcc.gnu.org/g:4141aa41c51798ad7bd77e6da31bdd86f11a471d commit r17-1565-g4141aa41c51798ad7bd77e6da31bdd86f11a471d Author: Rainer Orth <[email protected]> Date: Mon Jun 15 14:16:37 2026 +0200 testsuite: Skip gcc.dg/lto/toplevel-extended-asm-1 etc. on 64-bit Solaris/SPARC Two LTO tests FAIL on 64-bit Solaris/SPARC: FAIL: gcc.dg/lto/toplevel-extended-asm-1 c_lto_toplevel-extended-asm-1_0.o-c_lto_toplevel-extended-asm-1_1.o link, -O2 -flto -flto-partition=1to1 -no-pie FAIL: gcc.dg/lto/toplevel-simple-asm-1 c_lto_toplevel-simple-asm-1_0.o-c_lto_toplevel-simple-asm-1_1.o link, -O2 -flto -flto-toplevel-asm-heuristics -flto-partition=1to1 -no-pie FAIL: gcc.dg/lto/toplevel-simple-asm-1 c_lto_toplevel-simple-asm-1_0.o-c_lto_toplevel-simple-asm-1_1.o link, -O2 -flto -flto-toplevel-asm-heuristics -flto-partition=cache -no-pie FAIL: gcc.dg/lto/toplevel-simple-asm-1 c_lto_toplevel-simple-asm-1_0.o-c_lto_toplevel-simple-asm-1_1.o link, -O2 -flto -flto-toplevel-asm-heuristics -flto-partition=max -no-pie They always fail to link like ld: fatal: relocation error: R_SPARC_32: file c_lto_toplevel-extended-asm-1_1.o: symbol .text (section): value 0x100001340 does not fit The same error has been present with gld all along, but was only recently introduced in Solaris ld as discussed in binutils PR ld/25802. It doesn't occur on Linux/sparc64 which uses a different text start address. Tested on sparcv9-sun-solaris2.11, sparc64-unknown-linux-gnu, and x86_64-pc-linux-gnu. 2026-06-13 Rainer Orth <[email protected]> gcc/testsuite: * gcc.dg/lto/toplevel-extended-asm-1_0.c: Skip on 64-bit Solaris/SPARC. * gcc.dg/lto/toplevel-simple-asm-1_0.c: Likewise.
