mescc: Mes C Library: Support make: Support main with envp.
[mes.git] / lib / linux / x86_64-mes-gcc / crt1.c
index 2a5fca57a2849b45f1b42b529039836cfef88f78..4693e0f68c07debe83ebae2f1fb512c3fbf57c2a 100644 (file)
@@ -35,6 +35,7 @@ _start ()
        "shl     $3,%%rax\n\t"
        "add     %%rbp,%%rax\n\t"
        "mov     %%rax,%0\n\t"
+       "mov     %%rax,%%rdx\n\t"
        : "=r" (environ)
        : //no inputs ""
        );