-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix(compile): use 8-byte header for embedded section to ensure bytecode alignment #25377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…de alignment Change the size header in embedded Mach-O and PE sections from u32 (4 bytes) to u64 (8 bytes). This ensures the data payload starts at an 8-byte aligned offset, which is required for the bytecode cache. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Updated 2:19 PM PT - Dec 6th, 2025
❌ @dylan-conway, your commit 9e578ff has 4 failures in
🧪 To try this PR locally: bunx bun-pr 25377That installs a local version of the PR into your bun-25377 --bun |
WalkthroughStandalone module graph Mach-O and PE length fields and headers were widened from 32-bit to 64-bit. Size/type changes propagate to accessor signatures, on-disk header offsets (data now starts after an 8-byte header), padding/offset calculations, and a new PE data accessor was added. Changes
Possibly related PRs
Pre-merge checks❌ Failed checks (1 inconclusive)
✅ Passed checks (1 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (4)test/**/*.{js,ts,jsx,tsx}📄 CodeRabbit inference engine (.cursor/rules/writing-tests.mdc)
Files:
test/**/*.test.{ts,js,jsx,tsx,mjs,cjs}📄 CodeRabbit inference engine (test/CLAUDE.md)
Files:
test/regression/issue/**/*.test.ts📄 CodeRabbit inference engine (test/CLAUDE.md)
Files:
test/**/*.test.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-11-24T18:36:59.706ZApplied to files:
📚 Learning: 2025-10-03T18:29:20.173ZApplied to files:
📚 Learning: 2025-08-31T09:08:12.104ZApplied to files:
📚 Learning: 2025-11-24T18:37:47.899ZApplied to files:
Comment |
Update the PE codesigning integrity test to read the .bun section size as a u64 (8 bytes) instead of u32 (4 bytes), matching the format change in the previous commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Summary
u32(4 bytes) tou64(8 bytes)Test plan
🤖 Generated with Claude Code