Charles Davis : winebuild: Make emitting mod_*_func sections on Mac OS respect the pointer size.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 23 10:52:56 CST 2015


Module: wine
Branch: master
Commit: 6f6e42498d1a150ef71107a9762229c85bdca326
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6f6e42498d1a150ef71107a9762229c85bdca326

Author: Charles Davis <cdavis5x at gmail.com>
Date:   Thu Jan 22 23:25:25 2015 -0700

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

---

 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
     {




More information about the wine-cvs mailing list