Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pre-binding gets disabled.



Hi!

A quick question. (This is all done on Tiger 10.4.3)


I did configure my application to use pre-binding against my own shared lib. I passed the -seg1addr with different values to each shared lib to make sure I would have no overlapping. Xcode eventually linked everything successfully.


If I check the shared libs and the executable with otool -hv, everything is corretly prebound

However, when I run the application with the environment variable
DYLD_PREBIND_DEBUG set

I get the following:

asterix /Users/ldm/work/OSX/Comet/compiler/build [203] -> Release/ comet.app/Contents/MacOS/comet
dyld: image uses flat-namespace so, parts of prebinding ignored /usr/ lib/libgcc_s.1.dylib
dyld: image slid, so could not use prebinding in /Users/ldm/work/OSX/ Comet/compiler/build/Release/comet.app/Contents/MacOS/../../../jit.dylib
dyld: image slid, so could not use prebinding in /Users/ldm/work/OSX/ Comet/compiler/build/Release/comet.app/Contents/MacOS/../../../thread- posix.dylib
dyld: image slid, so could not use prebinding in /Users/ldm/work/OSX/ Comet/compiler/build/Release/comet.app/Contents/MacOS/../../../ data.dylib
dyld: image slid, so could not use prebinding in /Users/ldm/work/OSX/ Comet/compiler/build/Release/comet.app/Contents/MacOS/../../../ localizer.dylib
dyld: image slid, so could not use prebinding in /Users/ldm/work/OSX/ Comet/compiler/build/Release/comet.app/Contents/MacOS/../../../gui.dylib
dyld: image slid, so could not use prebinding in /Users/ldm/work/OSX/ Comet/compiler/build/Release/comet.app/Contents/MacOS/../../../ runtime.dylib
dyld: dependent libraries changed, so could not use prebinding in / Users/ldm/work/OSX/Comet/compiler/build/Release/comet.app/Contents/ MacOS/comet


So pre-binding is present but ignored.

I tried changing some of the values passed to -seg1addr for the shared libs shown above but without any success. (All the shared libs are listed, not a _single_ one gets its prebind info used).

So... What am I doing wrong ?

Here is the output of otool  on the main binary:

asterix /Users/ldm/work/OSX/Comet/compiler/build [204] -> otool -hv Release/comet.app/Contents/MacOS/comet
Release/comet.app/Contents/MacOS/comet:
Mach header
magic cputype cpusubtype filetype ncmds sizeofcmds flags
MH_MAGIC PPC ALL EXECUTE 60 7356 NOUNDEFS DYLDLINK PREBOUND TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK


Any pointer or suggestion is most welcomed.

Thanks.

---
  Laurent

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.