I've recently built my second Mach-O app with Codewarrior. However, I've
hit a bit of rough water with this one.
My app builds fine, but generates a suspicious linker warning:
dynamic library '@executable_path/../Frameworks/libHIDUtilities.dylib'
section '__TEXT' ($00090000-$0009B000)
overlaps with output file section '__TEXT' ($00001000-$00924000)
(need to run redo_prebinding)
I don't know what that means or how to fix it. Disabling pre-binding for
the app makes it go away. My app crashes immediately on launch, so I
suspect this may play a role. Anyway, that's not the main reason I'm
writing.
When I go to debug my app, CodeWarrior hangs forever with a spinning
rainbow cursor and the text "Loading debugging data for target..." at
the bottom of the project window. I have to force-quit the app at this
point.
In searching the archives, I see a lot of similar posts, but no
definitive answers. I'm running 10.2.6, Dec 2002 Dev tools, CW Pro 8.3.
Is the Mach-O support in CW Pro 8 still fairly immature? Should I use
Project Builder instead for Mach-O?
--
Brad Oliver
bradman@pobox.com.AM_SPAY
MW Ron - 07 Jul 2003 22:43 GMT
>I've recently built my second Mach-O app with Codewarrior. However, I've
>hit a bit of rough water with this one.
[quoted text clipped - 20 lines]
>Is the Mach-O support in CW Pro 8 still fairly immature? Should I use
>Project Builder instead for Mach-O?
Our engineers tried to make the error message as clear as possible, but
Mach-O has some unclear concepts. Prebinding (which is on by default),
requires that all dynamic libraries used by the application don't have
addresses which overlap. The dynamic loader can deal with the problem
(which is why these are only warnings), but the code will run slow as it
will require a dynamic fixup to it's relocations.
Building "libHIDUtilities.dylib" with a different starting address
using the option -seg1addr long or turn off prebinding.
Ron

Signature
Metrowerks has moved, our new address is now
7700 West Parmer Lane
Austin, TX 78729
Sales and Support 512-996-5300 800-377-5416
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com