Skip to content
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

compilation: use the dedicated stack-sizes section only for AOT #3732

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

yamt
Copy link
Collaborator

@yamt yamt commented Aug 19, 2024

For JIT, we naturally use mach-o on macOS, where the section name we currently use is not valid and ends up with the errors like:

LLVM ERROR: Global variable '__orc_lcl.aot_stack_sizes.0' has an invalid section specifier '.aot_stack_sizes': mach-o section specifier requires a segment and section separated by a comma.

Because the dedicated section is not necessary for JIT, this commit simply stops using it.

Fixes: #3730

For JIT, we naturally use mach-o on macOS, where the section name
we currently use is not valid and ends up with the errors like:

```
LLVM ERROR: Global variable '__orc_lcl.aot_stack_sizes.0' has an invalid section specifier '.aot_stack_sizes': mach-o section specifier requires a segment and section separated by a comma.
```

Because the dedicated section is not necessary for JIT,
this commit simply stops using it.

Fixes: bytecodealliance#3730
@wenyongh wenyongh merged commit 581e1d9 into bytecodealliance:main Aug 20, 2024
383 checks passed
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.

An invalid section specifier .aot_stack_sizes
2 participants