Skip to content

DRAFT: fix(rust): sanitize export names for PGO compatibility#1577

Closed
carabistouflette wants to merge 2 commits intobytecodealliance:mainfrom
carabistouflette:fix-pgo-1509
Closed

DRAFT: fix(rust): sanitize export names for PGO compatibility#1577
carabistouflette wants to merge 2 commits intobytecodealliance:mainfrom
carabistouflette:fix-pgo-1509

Conversation

@carabistouflette
Copy link
Copy Markdown

Replace ':' and '#' characters with underscores in export names to make them compatible with native ELF linkers during PGO builds.

Fixes #1509

Replace ':' and '#' characters with underscores in export names to make
them compatible with native ELF linkers during PGO builds.

Fixes bytecodealliance#1509
@carabistouflette
Copy link
Copy Markdown
Author

still a draft for now

@carabistouflette carabistouflette changed the title fix(rust): sanitize export names for PGO compatibility DRAFT: fix(rust): sanitize export names for PGO compatibility Apr 1, 2026
@carabistouflette
Copy link
Copy Markdown
Author

The PGO issue with native ELF linkers cannot be solved purely in wit-bindgen because the component model metadata encoding is controlled by wasm-tools apparently. Sad, I'll close the PR as it's not of any use

@carabistouflette
Copy link
Copy Markdown
Author

I'll do another PR trying to fix the issue on both end as it needs a change in wit-bindgen and also in wasm-tools

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.

PGO errors on native with symbols generated by wit_bindgen::generate!

1 participant