http://bugs.winehq.org/show_bug.cgi?id=14920
--- Comment #17 from Alexandre Julliard julliard@winehq.org 2009-06-22 10:35:40 --- Created an attachment (id=21947) --> (http://bugs.winehq.org/attachment.cgi?id=21947) Asm fragment to demonstrate the Apple linker bug.
The bug is actually not in gcc, but in the linker. To see the bug with the attached callw.s:
$ gcc -o callw callw.s $ otool -t -v callw
and check to which label the callw goes. It should go to correct_dest if the linker works.