[codex] Normalize PSP archive metadata#6
Merged
Conversation
doodlewind
force-pushed
the
codex/normalize-psp-archives
branch
from
June 19, 2026 09:33
0d0814a to
96b07a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Normalize generated PSP archive objects before packaging PSPDEV builds.
The clang-built SDK archives currently expose two issues when linked by rust-lld from rustc's current
mipsel-sony-psptarget:STT_FILEsymbols in archive members can tripsymbol has invalid binding: 0This script runs after the normal SDK build steps and before CI packaging. It strips only
STT_FILEsymbols and normalizes MIPS ELF metadata to match rustc/legacy PSP SDK objects: MIPS2 O32, no machine extension, hard-float double ABI metadata.Validation
bash -n scripts/006-normalize-llvm-psp-archives.shlibc.a(libc_a-abort.o)no longer containsSTT_FILEsymbols and reportsFlags: 0x10001001, noreorder, o32, mips2plusFP ABI: Hard float (double precision).env -u PSPJS_SUPPRESS_LINKER_MESSAGES bun play psp adventure3dbuiltEBOOT.PBPwith no linker warnings/errors.