Skip to content
Snippets Groups Projects
Commit 2e8785ac authored by Wolfgang Schildbach's avatar Wolfgang Schildbach Committed by Riku Voipio
Browse files

Fix commandline handling for ARM semihosted executables

Use the copy of the command line that loader_build_argptr() sets up in guest
memory as the command line to return from the ARM SYS_GET_CMDLINE semihosting
call. Previously we were using a pointer to memory which had already been
freed before the guest program started.

This fixes https://bugs.launchpad.net/qemu/+bug/673613

 .

Signed-off-by: default avatarWolfgang Schildbach <wschi@dolby.com>
Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarRiku Voipio <riku.voipio@iki.fi>
parent 3ebe80c2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment