fix(macos): hide libSceSsl's static mbedtls symbols #10877
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10877"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by krishalivaibhav on 2026-10-25T07:10:15Z.
What
On Linux and MinGW,
libSceSsllinks its static mbedtls with--exclude-libs,ALL. Apple ld has no such option, so on macOS the prx exported its mbedtls symbols and the dynamic linker bound them to the copy linked into the test executables. The prx's pool allocator, which is installed withmbedtls_platform_set_calloc_free, then served the test server's threads, which have no pool, andguest_ssl_transport_kernelandguest_ssl_transport_netfailed.This PR adds an
elseif(APPLE)branch that links with-unexported_symbol,_mbedtls_*. The existing Linux/MinGW branch is unchanged. The approach follows iamthehimansh'sfeat/macos-port(#8658), and iamthehimansh is credited as co-author.Tested
macOS: Apple Silicon M2, macOS 27.2, AppleClang, x86_64 Release, on a local integration of
main+ #10419 + #10366 + #10369 + #7631 + #7804 + #4630 + #10552 + #10853 + #10876 + this commit:guest_ssl_transport_kernelandguest_ssl_transport_netpass. Without this commit, they fail;guest_ssl,guest_ssl_load,guest_ssl_ps5_readers,guest_http,guest_http2,guest_http_optionsandguest_http_response_headerpass;ctest -R '^(guest_|libc_|libkernel_)': no new failures.Linux/Windows: not built locally. Only an Apple branch is added.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository🤖 Generated with Claude Code
Pull request closed