All, There's currently a problem in ARM & AArch64 crt0 on the GetCommandLine semihosting invocation. I am proposing this patch to fix the issue. Tested with versions : gcc 5.4, binutils 2.26, qemu-arm / qemu-aarch64 2.5.0. Would it be ok to commit ? Regards, Laurent Alfonsi