From 3c8b0a1064c642672abee0f5cb5548a1e2916b2a Mon Sep 17 00:00:00 2001 From: Mohamed Mediouni <24752637+woachk@users.noreply.github.com> Date: Thu, 25 Oct 2018 21:03:38 +0200 Subject: [PATCH] Fix 32-bit builds --- ld-mac.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ld-mac.cc b/ld-mac.cc index 83d2592..ed48215 100644 --- a/ld-mac.cc +++ b/ld-mac.cc @@ -841,7 +841,7 @@ void MachOLoader::boot( " push %%eax;\n" " jmp *%0;\n" // TODO(hamaji): Fix parameters - ::"r"(entry), "r"(argc), "r"(argv + argc), "g"(envp) + ::"r"((uint32_t)entry), "r"(argc), "r"(argv + argc), "g"(envp) :"%eax", "%edx"); #endif }