Solution Re: local relocation entries in non-writable section error
Solution Re: local relocation entries in non-writable section error
- Subject: Solution Re: local relocation entries in non-writable section error
- From: Emile Tobenfeld <email@hidden>
- Date: Fri, 1 Dec 2006 14:27:43 -0500
Title: Solution Re: local relocation entries in
non-writable sect
At 10:58 AM -0800 12/1/06, Dave Howell wrote:
http://developer.apple.com/documentation/Performance/Conceptual/CodeFootprint/Articles/CompilerOptions.html
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.
Thanks Dave, that's what I was looking for.
--
"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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden