I refactored script vs ELF handling as part of some ELF loading work I was doing, and it revealed that we were ignoring the original argv[] of a script that got interpreted based on its '#!' line. Add an integration test that passed on Linux and failed on kerla, and fix the bug.
Pre-Submission Checklist
When you submit a PR, please make sure your PR satisfies the following checklist:
[x] I assert this contribution was authored by me.
[x] I license this contribution under the license of this project.
[x] The PR title describes your changes briefly and uses the present tense, without a trailing full stop.
[x] The PR description describes the reason why we need the change.
[x] This is an isolated change. No multiple changes and no unrelated changes are included.
Description
I refactored script vs ELF handling as part of some ELF loading work I was doing, and it revealed that we were ignoring the original argv[] of a script that got interpreted based on its '#!' line. Add an integration test that passed on Linux and failed on kerla, and fix the bug.
Pre-Submission Checklist
When you submit a PR, please make sure your PR satisfies the following checklist:
cargo clippy
warnings.rustfmt
.