Re: Link Error with MMX asm support in Bundle project
Re: Link Error with MMX asm support in Bundle project
- Subject: Re: Link Error with MMX asm support in Bundle project
- From: Jonas Maebe <email@hidden>
- Date: Wed, 20 Sep 2006 14:24:50 +0200
On 20 sep 2006, at 14:08, ann_chen (陳勇) wrote:
I add the MMX code in my project . the XCode will report link erro :
/usr/bin/ld:
/project_path/build/project_name/Release/
mmx_test_bundle.build/Object-normal/i386/mmx_test.o
Has local relocation entries in non-writable section
(__TEXT,__text)
Collect2: ld returned 1 exit status .
I don’t know what mean , and ,how can i fix these .
You have to rewrite your code as PIC (position-independent code).
But if i set XCode target Linking-> Mach-O Type
From Bundle to Executable, build success .
That's because executables do not have to be position-independent,
since they are always loaded at the same address.
Jonas _______________________________________________
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