Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / July 2003



Tip: Looking for answers? Try searching our database.

Trouble debugging Mach-O app

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brad Oliver - 07 Jul 2003 10:30 GMT
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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.