[PATCH] winebuild: Make emitting mod_*_func sections on Mac OS respect the pointer size.

Charles Davis cdavis5x at gmail.com
Fri Jan 23 00:25:25 CST 2015


---
 tools/winebuild/spec32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c
index 35fe144..98060b5 100644
--- a/tools/winebuild/spec32.c
+++ b/tools/winebuild/spec32.c
@@ -426,8 +426,8 @@ static void output_asm_constructor( const char *constructor )
     {
         /* Mach-O doesn't have an init section */
         output( "\n\t.mod_init_func\n" );
-        output( "\t.align %d\n", get_alignment(4) );
-        output( "\t.long %s\n", asm_name(constructor) );
+        output( "\t.align %d\n", get_alignment(get_ptr_size()) );
+        output( "\t%s %s\n", get_asm_ptr_keyword(), asm_name(constructor) );
     }
     else
     {
-- 
2.2.2




More information about the wine-patches mailing list