feat(libSceNet): export sce_net_in6addr_linklocal_allnodes #3707
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3707"
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 overlordxrz-source on 2026-10-11T15:42:45Z.
What
Exports
sce_net_in6addr_linklocal_allnodes(84MgU4MMTLQ) from libSceNet: the 16-byte IPv6 link-local all-nodes addressff02::1, next to the existingsce_net_in6addr_any, with 4-byte alignment like thestruct in6_addrit stands for.Resident Evil 4 (PPSA07411) stops on it at start-up. @xXPBSXx reported on #2591 (Windows 10, MinGW-w64 GCC 15.2) that once the missing
Party.prxis skipped, the titleThat run was on
main57f96fd2with #2872, #2658 and theParty.prxskip (ce0b99ac plus the one-lineimported[index]change). All of these are onmainnow: #2872 is merged,pthread_attr_setsolosched_npcame in through #3176, and the skip with that exact line came in through #3129. #2776 and #3043 also list this object as absent for RE4 and PRAGMATA (PPSA02530).This is #1808 by @eliasbruno124-dev, which was closed because Onimusha 2 did not stop on it on
main. RE4 now does. The commit credits that PR's author as co-author, and the test follows theirs.The value is
IN6ADDR_LINKLOCAL_ALLNODES_INITfrom FreeBSD'snetinet6/in6.hand RFC 4291 section 2.7.1. The object is read-only, asin6addr_linklocal_allnodesis in FreeBSD.Tested
guest_sce_netgetsCheckLinkLocalAllNodesIpv6. It checks that the object is 4-byte aligned and equalssceNetInetPton(AF_INET6, "ff02::1"). It checks thatsceNetInetNtopwritesff02::1into exactly 8 bytes without touching the next one, and fails withENOSPC(28) into 7 bytes. It also checks that the text parses back to the same bytes.-target x86_64-linux-gnu -std=c++20):libSceNet/Export.cppandtests/GuestSceNet.cppbuild without errors. In the object file,sce_net_in6addr_linklocal_allnodesis a global 16-byte.rodatasymbol holdingff020000000000000000000000000001. The name hashes to84MgU4MMTLQ, which matches the aerolib entry.ff01instead offf02aborts.python3 tools/check_conventions.py: all checks pass.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:53:47Z.
Checked:
sce_net_in6addr_linklocal_allnodeshashes to84MgU4MMTLQ(aerolib), valueff02::1matches RFC 4291 2.7.1 / FreeBSDIN6ADDR_LINKLOCAL_ALLNODES_INIT, 4-byte aligned. Built on current main,guest_sce_netpasses, and without the export the test no longer links. Merging.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T22:50:31Z.
Test from Resident Evil 4 (PPSA07411) and PRAGMATA (PPSA02530), Windows, MinGW GCC 15.2.0: both end in the loader with
FAIL: unresolved ELF import 84MgU4MMTLQ from libSceNet.prxonmainplus the other open export PRs. With this PR added, the stop moves to the next unresolved import and with the rest of the stack applied the titles get through the loader. Not tested: this PR alone.AI-assisted (Claude Code).