• 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
how do I prebind a SharedFramework?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how do I prebind a SharedFramework?


  • Subject: how do I prebind a SharedFramework?
  • From: Mark Slater <email@hidden>
  • Date: Thu, 2 May 2002 01:53:20 -0700

Hello,

I'm trying to write a pair of applications that use a common framework. This is the first time I've written any kind of framework, so it's been a learning process for me. Currently, I have 4 targets in my application, the framework (set up to compile and link as a SharedFramework with the @executable stuff), 2 application targets (with copy phases to copy the framework into the applications), and an aggregate target to build both apps at the same time.

Everything is linking and running fine, except that I get these three warnings (I edited the path to the executable to be a little shorter than it really is, but otherwise these are the exact errors):

/usr/bin/ld: warning prebinding disabled because (__PAGEZERO segment (address = 0x0 size = 0x1000) of <PATH_FROM_ROOT>/Walkabout/build/WalkaboutServer.app/Contents/MacOS/WalkaboutServer overlaps with __TEXT segment (address = 0x0 size = 0x1000) of @executable_path/../Frameworks/WalkaboutFramework.framework/Versions/A/WalkaboutFramework

/usr/bin/ld: warning prebinding disabled because (__TEXT segment (address = 0x1000 size = 0x8000) of <PATH_FROM_ROOT>/Walkabout/build/WalkaboutServer.app/Contents/MacOS/WalkaboutServer overlaps with __DATA segment (address = 0x1000 size = 0x1000) of @executable_path/../Frameworks/WalkaboutFramework.framework/Versions/A/WalkaboutFramework

/usr/bin/ld: warning prebinding disabled because (__TEXT segment (address = 0x1000 size = 0x8000) of <PATH_FROM_ROOT>/Walkabout/build/WalkaboutServer.app/Contents/MacOS/WalkaboutServer overlaps with __LINKEDIT segment (address = 0x2000 size = 0x1000) of @executable_path/../Frameworks/WalkaboutFramework.framework/Versions/A/WalkaboutFramework

From what I've read, I have to somehow "pass either the -seg1addr flag or the -seg_addr_table flag to ld" from the Project Builder documentation on prebinding. So my question is this:

How do I know what address to choose for the framework?

I know the prebinding isn't required, but from what I've read, it is preferred. Any help would be appreciated.

Thanks!
Mark
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Using pathnames with special characters
  • Next by Date: Re: NSString problem
  • Previous by thread: Re: NSString problem
  • Next by thread: Is Apple's UTF-8 decoder safe?
  • Index(es):
    • Date
    • Thread