Skip to content

fix codegen: fix -flto=auto support for GCC#1152

Closed
botanegg wants to merge 1 commit intouserver-framework:developfrom
botanegg:1151-fix-gcc-linking-with-flto-auto
Closed

fix codegen: fix -flto=auto support for GCC#1152
botanegg wants to merge 1 commit intouserver-framework:developfrom
botanegg:1151-fix-gcc-linking-with-flto-auto

Conversation

@botanegg
Copy link
Contributor

@botanegg botanegg commented Mar 21, 2026

Unify .global directives across platforms and align symbol names with
actual labels (_begin, _end, _size). Previously, macOS used mismatched
_start symbols and non‑Apple platforms omitted .global entirely, causing
link‑time errors when LTO (-flto=auto) was enabled with GCC.

Closes #1151


Note: by creating a PR or an issue you automatically agree to the CLA. See CONTRIBUTING.md. Feel free to remove this note, the agreement holds.

@apolukhin
Copy link
Member

LGTM

@robot-magpie
Copy link

robot-magpie bot commented Mar 21, 2026

Many thanks for the PR! @apolukhin is now importing your pull request into our internal upstream repository.

@robot-magpie
Copy link

robot-magpie bot commented Mar 23, 2026

✅ This pull request is being closed because it has been successfully merged into our internal monorepository.
Your changes will be pushed to this repository soon. Thank you for your contribution!

@robot-magpie robot-magpie bot closed this Mar 23, 2026
robot-piglet pushed a commit that referenced this pull request Mar 23, 2026
Closes #1151

---

Pull Request resolved: #1152
commit_hash:2900ce4e000ea39b22223a78477be6ef34ea844c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GCC compile errors with -flto=auto

2 participants