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

S_ATTR_PURE_INSTRUCTIONS incorrectly specified #101

Closed
bjorn3 opened this issue Oct 27, 2019 · 1 comment
Closed

S_ATTR_PURE_INSTRUCTIONS incorrectly specified #101

bjorn3 opened this issue Oct 27, 2019 · 1 comment

Comments

@bjorn3
Copy link
Contributor

bjorn3 commented Oct 27, 2019

Some(S_ATTR_PURE_INSTRUCTIONS | S_ATTR_SOME_INSTRUCTIONS),

Cranelift puts jump tables right next to the code, so the __text section will contain non instruction data when using jump tables.

@bjorn3
Copy link
Contributor Author

bjorn3 commented Oct 30, 2019

Quoting @philipc

From a brief look, lld always outputs S_ATTR_PURE_INSTRUCTIONS for __TEXT,__text, regardless of what the input object files specified.

@bjorn3 bjorn3 closed this as completed Oct 30, 2019
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

No branches or pull requests

1 participant