In Xcode, for each project and for each target:
1) Go to the build settings 2) Type "dynamic-no-pic" into the search box 3) Ensure that "Generate Position-Dependent Code" is either not set OR is explicitly set to NO 4) Type "other_" into the search box 5) Ensure that "-Wl,-no_pie" is NOT being passed via any of the various "Other … Flags" variables.
On Jun 18, 2012, at 9:09 AM, Vojtěch Meluzín < email@hidden> wrote: I tried... but no compiler or linker options seem to have any effect here... And as I said it works with the same compiler options, but not with my sources and the only difference I can see is that the sources are huge, but minimizing them doesn't seem to help... No idea what to do know...
Vojtech
2012/6/18 Dave Zarzycki <email@hidden>
On Jun 18, 2012, at 9:05 AM, Vojtěch Meluzín < email@hidden> wrote:
ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in __ZN14MConsoleStreamC2Ev from /Users/melda/Library/Developer/Xcode/DerivedData/console-elzukurmumezgoaajfaamjcaoeol/Build/Intermediates/console.build/Debug/console.build/Objects-normal/x86_64/mlibrary_part_2.o. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
You should fix the above first before trying to figure out the "32-bit RIP relative reference out of range" error.
davez
|