[php-src] PR #25824: Fix GH-25742: huge_code_pages program section not found on musl

From: Date: Fri, 27 Nov 2026 07:58:12 +0000
Subject: [php-src] PR #25824: Fix GH-25742: huge_code_pages program section not found on musl
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41097@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25824 Author: lazerg Fixes GH-25742. accel_dl_iterate_phdr_callback() took the first dl_iterate_phdr() entry with an empty name as the main executable. That holds on glibc, but musl reports the main program with its path, and the only entry with an empty name is the vDSO. The section headers from /proc/self/exe were then offset by the vDSO base, so opcache.huge_code_pages=1 warned "program section not found" on Alpine and never remapped anything. The callback now picks the object whose PT_LOAD segment contains the callback itself, as suggested in the issue. I checked it on alpine:3.22 (the warning is gone and the text segment is remapped) and on debian:12 (same behaviour as before).

« previous php.git-pulls (#41097) next »