[php-src] PR #12687: JIT/AArch64: Fix an undefined symbol issue

From: Date: Thu, 16 Nov 2023 08:35:32 +0000
Subject: [php-src] PR #12687: JIT/AArch64: Fix an undefined symbol issue
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-24195@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/12687 Author: pfustc In AArch64 function zend_jit_set_veneer(), some debug code calls two other functions ir_disasm_find_symbol() and ir_disasm_add_symbol() defined in ir_disasm.c. However, ir_disasm.c is compiled under the condition that capstone is available. This causes an undefined symbol issue while loading opcache.so when JIT is triggered if PHP is built without --with-capstone. We find this issue on MacOS 12.5 if we build PHP with Clang 14. It does not appear immediately when using other versions of toolchains because of lazy binding. To reproduce this with Linux/GCC, we can disable lazy binding by export LD_BIND_NOW=1 before building PHP. This fixes the issue by making the debug code conditionally compile.

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