From fbbf5f0a3f62d9ce45507885f95924d7f973c1e1 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 15 Sep 2025 20:14:32 -0300 Subject: [PATCH] [ppc] adjust configure test for large TOC support The use of the TLS register in a TOC/GOT address computation was probably a cut&pasto or a thinko. It causes a linker warning and, because the TLS access in the test is incomplete, may cause significant confusion. Adjust to use the TOC/GOT register as base. for gcc/ChangeLog * configure.ac: Adjust base register in linker test for large TOC support. * configure: Rebuild. --- gcc/configure | 2 +- gcc/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/configure b/gcc/configure index 5a779db0a29..d6cc7fc17ca 100755 --- a/gcc/configure +++ b/gcc/configure @@ -33209,7 +33209,7 @@ ie0: .space 8 .global _start .text _start: - addis 9,13,ie0@got@tprel@ha + addis 9,2,ie0@got@tprel@ha ld 9,ie0@got@tprel@l(9) EOF if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ diff --git a/gcc/configure.ac b/gcc/configure.ac index 7e57d527ecd..19975fa5be5 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -6789,7 +6789,7 @@ ie0: .space 8 .global _start .text _start: - addis 9,13,ie0@got@tprel@ha + addis 9,2,ie0@got@tprel@ha ld 9,ie0@got@tprel@l(9) EOF if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \ -- 2.47.3