• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: REPOST: "local relocation entries in non-writable section" error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: REPOST: "local relocation entries in non-writable section" error


  • Subject: Re: REPOST: "local relocation entries in non-writable section" error
  • From: Martin Crane <email@hidden>
  • Date: Tue, 22 Nov 2005 10:38:36 +0000

Thanks for the reply, Chris.

On 22 Nov 2005, at 09:49, Chris Ridd wrote:

On 22/11/05 9:30, Martin Crane <email@hidden> wrote:

I posted this question yesterday, but there were no replies. Nobody
has any suggestions?

I am moving from CodeWarrior to XCode, so I have joined this list.
Here is my first question:

Can anyone tell me how to overcome the following error I get when
compiling? :

...has local relocation entries in non-writable section (__TEXT,__text)

The error refers to an object file that was produced in another XCode
project and is subsequently included in the project I am working on.

Is there anything unusual in the .o file with this error? Large numbers of
initialised file-scope variables, functions, that sort of thing?



Nope.

The otool command might be able to give you some clues.


In what way? I have to admit I haven't used it before.

After googling around for this error, I've tried going back to GCC
3.3, tried setting compiler flags for -mdynamic -no-pic, and linker
flags to -Wl,-read_only_relocs,warning. But no change..


The odd thing is that this very problem is the subject of many results found in Google, and the things I've tried have been suggested in those articles. But for some reason it appears that XCode ignores the settings I change. It does use GCC3.3 successfully though, not that it made any difference.


Regards,

Martin Crane
Macintosh Software Engineer
http://www.vicomsoft.com
Policing For Productivity
________________________________________________________
Vicomsoft is a dynamic market leader in Content Filtering, Internet Connectivity and Firewall Software, with an award-winning portfolio specifically designed for Mac OS X and Windows
________________________________________________________



_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: REPOST: "local relocation entries in non-writable section" error (From: Chris Ridd <email@hidden>)

  • Prev by Date: Re: REPOST: "local relocation entries in non-writable section" error
  • Next by Date: Re: REPOST: "local relocation entries in non-writable section" error
  • Previous by thread: Re: REPOST: "local relocation entries in non-writable section" error
  • Next by thread: Re: REPOST: "local relocation entries in non-writable section" error
  • Index(es):
    • Date
    • Thread