[Bug 13601] can't compile wine with Xcode 3.1 or iPhone SDK

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Jul 23 12:53:21 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=13601


Zhangrong Huang <hzhrong at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hzhrong at gmail.com




--- Comment #10 from Zhangrong Huang <hzhrong at gmail.com>  2008-07-23 12:53:20 ---
damn apple!

I think it's an issue of ld:

Try the test:

1. compile test1.o from asm code test1.s:
$ cat test1.s
        .data
        .long _CRTDLL__basemajor_dll
        .long _CRTDLL__baseminor_dll

$ as -o test1.o test1.s
$ nm test1.o 
         U _CRTDLL__basemajor_dll
         U _CRTDLL__baseminor_dll

2. compile test2.o from C code test2.c:
$ cat test2.c 
unsigned int CRTDLL__basemajor_dll;
unsigned int CRTDLL__baseminor_dll;

$ gcc -g -c -o test2.o test2.c 
$ nm test2.o 
00000004 C _CRTDLL__basemajor_dll
00000004 C _CRTDLL__baseminor_dll

3. merge test1.o and test2.o to test.o

using new iPhone SDK ld: 
$ ld -r -o test.o test1.o test2.o 
$ nm test.o 
00000004 C _CRTDLL__basemajor_dll
         U _CRTDLL__basemajor_dll
00000004 C _CRTDLL__baseminor_dll
         U _CRTDLL__baseminor_dll

using old ld from iPhone SDK beta1: 
$ ~/bin/ld -r -o test.o test1.o test2.o 
$ nm test.o 
00000004 C _CRTDLL__basemajor_dll
00000004 C _CRTDLL__baseminor_dll


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list