• 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: Prebinding disabled by overlapping?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prebinding disabled by overlapping?


  • Subject: Re: Prebinding disabled by overlapping?
  • From: Dan Wood <email@hidden>
  • Date: Tue, 09 Oct 2001 15:11:37 -0700

Prebinding is enough to make your head spin. Still, you can figure it out with enough patience. And it *is* a good thing; I think it's worth the effort to get it working so your app will launch faster.

Be sure to read, and re-read, the "bible" at:
http://developer.apple.com/tools/projectbuilder/Prebinding.html

What I did in my project (that had a similar problem was to mess with the "Build Settings" of my framework's target in Project Builder. Check the checkbox that says "prebind" (obviously) but then in the "Other linker flags" field, you need to specify a starting address. You can sort of pick one out of a hat and see if it works; I think anything from 0x000,0000 to 0x3FFF,FFFF is fair game. You need to be above your application which is going to start at 0x0000,0000. I used 0x1a00,0000 and things worked for me.

(I had heard about some technique to query the debugger what the nearest address is that you could use... Anybody know the details? It would be useful if you had a lot of frameworks and had to squeeze them into place...)

Another hint: In your application target, executables tab, environment variable sub-tab, set DYLD_PREBIND_DEBUG to something (like "1"). You'll see a little bit of diagnostic information in the run pane to show you what's going on.

Good luck!

-- Dan Wood, now fully prebound :-)



On Tuesday, October 9, 2001, at 02:19 PM, George Ma wrote:

Hi all,

I keep getting lots of warning messages like this when I build my
project:

/usr/bin/ld: warning prebinding disabled because (__PAGEZERO segment
(address = 0x0 size = 0x1000) of
/Users/local/Projects/Current/Polynikes/build/Polynikes.app/Contents/MacOS/
Polynikes overlaps with __TEXT segment (address = 0x0 size = 0x32000) of
/System/Library/PrivateFrameworks/XXXX.framework/Versions/A/NetServices

What does overlapping mean?

My local ObjC guru says to disable prebinding in build settings. But I
wonder if there is more going on here (I mean, prebinding is good,
right?)

Thanks in advance,
George
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev



--
Dan Wood
email@hidden
http://www.karelia.com/
http://www.bikealameda.org/
Mac OS X Developer: Online Resume: http://www.karelia.com/resume.html


References: 
 >Prebinding disabled by overlapping? (From: George Ma <email@hidden>)

  • Prev by Date: Prebinding disabled by overlapping?
  • Next by Date: Re: Additional info needed about "PackageMaker"
  • Previous by thread: Prebinding disabled by overlapping?
  • Next by thread: NSTableHeaderCell arrow images?
  • Index(es):
    • Date
    • Thread