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

Zig's ELF writer puts executable data outside of .text #171

Open
fwsGonzo opened this issue Jun 28, 2024 · 1 comment
Open

Zig's ELF writer puts executable data outside of .text #171

fwsGonzo opened this issue Jun 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fwsGonzo
Copy link
Owner

fwsGonzo commented Jun 28, 2024

This is a problem because the .text section can be used to find the correct alignment of instructions, which is a necessary check for proper sandboxing. I could not find a way to support both .text and ignore-.text at the same time, so I added a new option to MachineOptions called ignore_text_section.

The emulator can now run these Zig programs using the -I or --ignore-text argument. I will still file it as a bug as perhaps there is a way without needing an option.

@fwsGonzo fwsGonzo added the bug Something isn't working label Jun 28, 2024
@fwsGonzo
Copy link
Owner Author

The work-around is implemented here: #172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant