XCode 2.4 inline asm broken with asm-blocks / Bug ID 4773139
XCode 2.4 inline asm broken with asm-blocks / Bug ID 4773139
- Subject: XCode 2.4 inline asm broken with asm-blocks / Bug ID 4773139
- From: Sebastien Metrot <email@hidden>
- Date: Mon, 09 Oct 2006 21:02:57 +0200
Hi,
The issue have already been discussed here some times ago but I hadn't
had the time to submit a proper bug repport until now.
Our code use a lot of handcrafted inline assembly for both PPC and X86.
It works beautifully with XCode 2.3 but as soon as we upgraded to XCode
2.4 we have experienced linker errors.
It is very simple to show this problem, just add this simple function to
a C++ project that compiles with asm-blocks:
void TestFunc()
{
#ifdef __i386__
__asm
{
mov ecx, 1
SetToLoop:
jz SetToDone;
dec ecx;
jmp SetToLoop;
SetToDone:
}
#endif
}
You will end up with the following error:
Bundlizing
/Users/meeloo/work/build/AsmTest.build/Debug/AsmTest.build/Objects-normal/i386/main.ob
/Users/meeloo/work/build/AsmTest.build/Debug/AsmTest.build/Objects-normal/i386/main.o
cd /Users/meeloo/AsmTest
/usr/bin/gcc-4.0 -bundle -arch i386
/Users/meeloo/work/build/AsmTest.build/Debug/AsmTest.build/Objects-normal/i386/main.o
-mmacosx-version-min=10.4 -Wl,-twolevel_namespace
-Wl,-twolevel_namespace_hints -Wl,-undefined -Wl,dynamic_lookup
-Wl,-multiply_defined -Wl,suppress -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -o
/Users/meeloo/work/build/AsmTest.build/Debug/AsmTest.build/Objects-normal/i386/main.ob
/usr/bin/ld:
/Users/meeloo/work/build/AsmTest.build/Debug/AsmTest.build/Objects-normal/i386/main.o
has local relocation entries in non-writable section (__TEXT,__text)
collect2: ld returned 1 exit status
I have submited the bug as pbm ID 4773139.
Is there any known workaround that would permit us to use XCode 2.4?
Many thanks in advance,
Sebastien
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden