• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Link Error with MMX asm support in Bundle project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Link Error with MMX asm support in Bundle project (From: ann_chen (��勇) <email@hidden>)

  • Prev by Date: Link Error with MMX asm support in Bundle project
  • Next by Date: RE: [Solved] Can I run nibtool under Rosetta?
  • Previous by thread: Link Error with MMX asm support in Bundle project
  • Next by thread: build error with xcode 2.4 on Intel Core 2 Duo
  • Index(es):
    • Date
    • Thread