Skip to content

AOT: per-function ELF sections + link --gc-sections (#36198 part A) - #36238

Merged
PurHur merged 2 commits into
masterfrom
agent/issue-36198-aot-gc-sections
Sep 1, 2026
Merged

PurHur merged 2 commits into
masterfrom
agent/issue-36198-aot-gc-sections

Conversation

@PurHur

@PurHur PurHur commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Summary

Part B (shared common.o runtime prologue) and helper-cache refresh remain follow-ups — committed prelinked unit.o files still use monolithic .text until re-emitted.

Test plan

./script/phpunit.sh --filter AotGcSectionsTest
# OK (6 tests, 10 assertions)

./script/aot-smoke.sh
# aot-smoke: 8 passed, 0 failed

script/differential-sweep.sh --aot --repeat 3
# 142/142 match Zend (aot backend)

make north-star5-verify-fast
# north-star5-verify: OK (fast)

Closes #36198 (part A — function sections + GC at link; part B deferred).

Made with Cursor

PurHur and others added 2 commits September 1, 2026 20:37
Tag each defined LLVM function with `.text.<symbol>` before object emit and pass
--gc-sections/-s at link so duplicate helper-runtime bodies can be discarded once
units are re-emitted. Also source bootstrap sidecar stamp helper before the VM
driver fast path and sync spine coverage for AotGcSections.php.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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