[php-src] Issue #22693: While linking gcc warns about a possible segfault

[email protected] (VARGA-Peter) Sat, 11 Jul 2026 10:25:28 +0000
Newsgroups php.bugs
Message-ID <Gimn7j52LqmnMVhvvszI4JOjYeQnJAXvEGJIAkauJtw@main.internal.php.net>
Issue: https://github.com/php/php-src/issues/22693
Author: VARGA-Peter

### Description

Compiling & linking 8.5.8 ends with:

```
/usr/lib64/gcc/x86_64-suse-linux/15/../../../../x86_64-suse-linux/bin/ld: ext/opcache/jit/tls/.libs/zend_jit_tls_x86_64.o: warning: relocation against `__tls_get_addr@@GLIBC_2.3' in read-only section `.text'
/usr/lib64/gcc/x86_64-suse-linux/15/../../../../x86_64-suse-linux/bin/ld: warning: GNU indirect functions with DT_TEXTREL may result in a segfault at runtime; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/15/../../../../x86_64-suse-linux/bin/ld: warning: creating DT_TEXTREL in a shared object
```

I didn't deploy the version as I don't want to risk segfault when gcc already warns about it.

SLES 15.7
gcc 15.2

### PHP Version

```plain
8.5.8
```

### Operating System

SLES 15.7