• 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: -fast creates linker error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -fast creates linker error


  • Subject: Re: -fast creates linker error
  • From: Ben Weiss <email@hidden>
  • Date: Wed, 15 Jun 2005 15:23:10 -0700


On Jun 15, 2005, at 1:16 PM, Ben Weiss wrote:

In my project, globally enabling the -fast compiler flag creates the following linker error:

/usr/bin/ld: /Users/benweiss/Documents/Projects/Reef/Projects/SSFilter/build/SSFilter.proj.build/Release/SSFilter.build/Objects-normal/ppc/DialogUtilitiesMac.o has local relocation entries in non-writable section (__TEXT,__text)

Without -fast, it compiles fine.  Anyone know what this error means, or how to work around it?

Responding to my own post, I found that declaring "-read_only_relocs suppress" in the linker flags allows the program to link with -fast. Is this a safe thing to  do?

However, now my program (a Photoshop filter) refuses to run, saying there is not enough RAM. (I'm on a dual G5 with 3.5G RAM.)  The culprit appears to be -mcpu=970; when I switch this to -mcpu=7450, it works fine. (-mpowerpc64 is not set in either case.) Anyone else run into this, or have a workaround?

Ben
 _______________________________________________
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

  • Follow-Ups:
    • Re: -fast creates linker error
      • From: Fritz Anderson <email@hidden>
References: 
 >-fast creates linker error (From: Ben Weiss <email@hidden>)

  • Prev by Date: Fwd: File Fork of Binary Sources : was Crash in pthread_mutex_lock
  • Next by Date: XCode 2.1: Why is gdb output going to console log, not XCode?
  • Previous by thread: -fast creates linker error
  • Next by thread: Re: -fast creates linker error
  • Index(es):
    • Date
    • Thread