decomp(bs2): recover loader address capture ordering #1079
Reference in New Issue
Block a user
Delete Branch "agent/bittle/bs2-loader-lifetime"
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?
Source evidence
Capture loaderRead.address in a genuinely consumed u32 local after BS2ReadDiskID returns, before reading length and publishing the existing LoaderLength/LoaderAddress/LoaderOffset globals. The original reads the post-call address before length but stores length before address. This preserves the real volatile store order; the historical alternative that reversed publication order was explicitly rejected. No pre-call snapshot, dummy state, qualifier, assembly, shared-header or linking change.
Independent parent verification on
cd0db8fdOnly one source form tried. Candidate SHA256 cbe805674ee00b147e3a70f6304fd7c154b1ae1c88886f889a66b39344a85962; uploaded tree
d5df596127equals independently tested tree. Evidence and limitations recorded in attempts log. No merge or auto-merge requested.Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.