From 20eb18a41a2b3a5470df1b6a8f662877803a97ee Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Mon, 8 Apr 2013 14:34:16 +0000 Subject: fix printing string parameter of function IO_error for mac os x --- macho64/astartup.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'macho64') diff --git a/macho64/astartup.s b/macho64/astartup.s index 55e5027..31bfce3 100644 --- a/macho64/astartup.s +++ b/macho64/astartup.s @@ -3108,10 +3108,11 @@ _IO_error: mov rbp,rsp and rsp,-16 - mov rbx,rcx .if LINUX + mov rbx,rdi lea rdi,IO_error_string[rip] .else + mov rbx,rcx sub rsp,32 lea rcx,IO_error_string .endif -- cgit v1.2.3