Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -fast creates linker error




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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >-fast creates linker error (From: Ben Weiss <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.