[php-src] PR #22801: ext/opcache: zend_jit_resolve_tsrm_ls_cache_offsets() TEXTREL from ba…
| From: | devnexen | Date: | Sun, 19 Jul 2026 04:06:24 +0000 |
| Subject: | [php-src] PR #22801: ext/opcache: zend_jit_resolve_tsrm_ls_cache_offsets() TEXTREL from ba… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37146@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22801
Author: devnexen
…re __tls_get_addr call.
Fix GH-22693
The x86_64 General Dynamic TLS sequence called __tls_get_addr without @PLT, which could emit a
PC-relative relocation against the external symbol landing in read-only .text, producing a
DT_TEXTREL and a linker warning about a possible runtime segfault. Routing the call through the PLT
matches the x86-64 TLS ABI canonical sequence and the already correct i386 variant, without changing
the emitted instruction bytes.