Build Fixed-Position Application Code By default, most code is built with the -dynamic compiler option. This option enables indirect symbol addressing and position-independent code generation, which allows the generated code to be relocated within the virtual memory space of the process. For projects such as bundles and frameworks, this option is required. The dynamic-linker must be able to relocate the bundle or framework and patch up symbol references at runtime. Unlike bundles and frameworks, applications do not need the position-independent code generation feature provided by the -dynamic option. Application code is never relocated within the process space. However, it does still require the indirect addressing feature to allow for dynamic linking to other code modules, such as bundles. To solve this problem, the GCC versions 3.1 and later support the -mdynamic-no-pic option, which disables position-independent code generation but allows indirect symbol addressing. You should always enable this option when building applications. Note: In Xcode, you specify the -mdynamic-no-pic option by choosing the Generate Position Independent Code option from the Code Generation settings.
Dave
On Dec 1, 2006, at 10:48 AM, Emile Tobenfeld wrote: Hi Darrin,
Thanks for the prompt reply.
Paul Garmon made the project for building the red app, and I am modifying it to make the FCP Plugin. I don't know if he started with the importer and made changes or just built the project fresh.
I am trying to link it into a bundle.
I don't know what mdynamic-no-pic means, or where I would set it or unset it. It seems to be a target setting (in testing so for I've tried three different link orders and the error always occurs on the first file in the link list.
Thanks.
At 10:19 AM -0800 12/1/06, Darrin Cardani wrote: On Dec 1, 2006, at 9:29 AM, Emile Tobenfeld wrote:
Hi
Can someone tell me what the below error message means and what the recommended way to deal with it is? Thanks.
/usr/bin/ld: /Volumes/Pollock/DoctorT/Codebase/VINDALOO/Projects/build/BorisFX_Plug.build/Imported CodeWarrior Settings/RED Debug.build/Objects-normal/ppc/LAction.o has local relocation entries in non-writable section (__TEXT,__text)
Here's what the Xcode Gods tell me:
He's compiled one or more object files with -mdynamic-no-pic, and is attempting to link it into something that is not a main executable (like a dylib or bundle). If the code will be linked into a dylib, it should not be compiled with -mdynamic-no-pic.
Maybe this is a bug in Xcode's CodeWarrior importer.
Let me know if this is a flag you specifically set or if it happened automatically when you imported your Xcode project, and I'll pass that information on to the Xcode team.
Darrin
-- Darrin Cardani email@hidden
--
"Serendipity Happens" Emile Tobenfeld, Ph. D. Video Producer Image Processing Specialist Video for your HEAD! Boris FX http://www.foryourhead.com http://www.borisfx.com
|