balena-io / qemu

QEMU with additional QEMU_EXECVE flag that persists emulator after an execve
Other
63 stars 29 forks source link

linux-user: Properly load hashbang scripts #17

Closed nghiant2710 closed 4 years ago

nghiant2710 commented 5 years ago

Add loader that parses hashbang scripts in loader_exec() in order to make QEMU works with scripts as QEMU only accepts ELF or flat binary.

Change-type: patch Signed-off-by: Trong Nghia Nguyen nghiant2710@gmail.com

nghiant2710 commented 5 years ago

ping @petrosagg

nghiant2710 commented 5 years ago

ping @petrosagg

nghiant2710 commented 4 years ago

@pdcastro, this PR allows QEMU to work with shebang so I think it can fix the issue but let's wait @petrosagg since he knows much more about this QEMU.