Skip to content

Build: commit helper-runtime common.o + prelink gate (#36246 follow-up) - #36423

Merged
PurHur merged 1 commit into
masterfrom
fix/helper-runtime-common-publish
Sep 2, 2026
Merged

Build: commit helper-runtime common.o + prelink gate (#36246 follow-up)#36423
PurHur merged 1 commit into
masterfrom
fix/helper-runtime-common-publish

Conversation

@PurHur

@PurHur PurHur commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Publishes prelinked/helper-runtime/x86_64-linux/common.o (+ common.bc) from the ctype anchor unit via script/emit-helper-runtime-common.php --from-prelinked
  • Extends check-helper-runtime-prelink.php to report common.o freshness (strict fails when manifest expects common but object is missing/stale)
  • Fixes HelperRuntimeCommon::publishManifestMetadata() to merge common fields without overwriting arch-level core_fingerprint / unit metadata
  • Adds make helper-runtime-common-publish target

Linking common.o remains opt-in (PHP_COMPILER_HELPER_RUNTIME_COMMON=1) until helper units are re-emitted with AotGcSections — auto-link was tested and causes aot-smoke segfaults (139) because the anchor copy still embeds helper exports, not a runtime-only prologue.

Closes #36246 (remaining deliverable: committed common.o artifact + gate; full size win blocked on gc-sections unit re-emit).

Test plan

  • ./script/aot-smoke.sh9/9, size gate OK
  • make dev-verify-fastOK (81s)
  • ./script/docker-exec.sh -- bash -lc 'php script/check-helper-runtime-prelink.php'400 fresh, 46 stale, common.o fresh
  • ./script/phpunit.sh --filter HelperRuntimeCommonTest4/4 OK
  • Full --prelink gc-sections re-emit (446 units) — follow-up; not in this PR

Made with Cursor

…-up)

Publish the shared runtime prologue from the ctype anchor unit, extend
check-helper-runtime-prelink to report common.o freshness, and preserve
arch manifest fields when merging common metadata. Linking stays opt-in
(PHP_COMPILER_HELPER_RUNTIME_COMMON=1) until units are re-emitted with
AotGcSections — auto-link currently segfaults aot-smoke.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 0b4d10f into master Sep 2, 2026
@PurHur
PurHur deleted the fix/helper-runtime-common-publish branch September 2, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant