http://bugs.winehq.org/show_bug.cgi?id=13601
Zhangrong Huang hzhrong@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hzhrong@gmail.com
--- Comment #10 from Zhangrong Huang hzhrong@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