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.
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.