• 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
local relocation entries error: from assembler (as) output?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

local relocation entries error: from assembler (as) output?


  • Subject: local relocation entries error: from assembler (as) output?
  • From: Charles Martin <email@hidden>
  • Date: Sat, 26 Nov 2005 11:23:29 -0800

I have a static library that works great when I use it outside of Xcode 2.2.:

$ g++ -o test test.cc libmylib.a

But when I try to link it to my Xcode 2.2 project, I get the dreaded
"local relocation entries" error:

/usr/bin/ld: ../mylib/libmylib.a(power.o) has local relocation entries
in non-writable section (__TEXT,__text)

The object file in question, power.o, is an assembly file, which was
compiled with "as":

$ as -o power.o power.S

I have tried compiling with -static and -n

$ as -static -o power.o power.S
$ as -static -n -o power.o power.S

(These two invocations yield the exact same object file.)

In any case, it doesn't a difference - I get the same "local
relocation entries" message.

Does anyone know why this should happen for Xcode and not for just a
regular (non-Xcode) statically linked binary?

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

  • Prev by Date: Re: Prevent warnings on forward struct declaration
  • Next by Date: Re: XCode 2.1: Custom projects
  • Previous by thread: Re: CVS: Only the linking fails, but how do we overcome this?
  • Next by thread: Trouble setting breakpoints in XCode 2.2
  • Index(es):
    • Date
    • Thread