Mailing Lists: Apple Mailing Lists

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

Nasm, PIC and the Leopard/XCode 3.0 linker



All, 

I've recently encountered the following problem while linking into a dynamic library / bundle with object files created by nasm. I have not had this issue with Xcode 2.4 on Tiger, do I have this problem with Xcode 2.5 on Leopard.

ld: absolute addressing (perhaps -mdynamic-no-pic) used in _(function)_sse3 from libSomething.a(someobjectfile_sse3.o) not allowed in slidable image

I know the root of the issue is that PIC is not being generated, though I've been able to link and run as mentioned before fine using the linker flag "-fread-only-relocs suppress ". Is there currently another work around for the Xcode 3.0 linker?

Any assistance would be greatly appreciated.

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



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.