Re: Custom frameworks and linking - SOLVED!
Re: Custom frameworks and linking - SOLVED!
- Subject: Re: Custom frameworks and linking - SOLVED!
- From: Jean-Francois Roy <email@hidden>
- Date: Sun, 15 Jun 2003 20:42:35 -0400
Yeah, prebinding requires to have a set address at which the framework
will be loaded, so that prebinding may actually do its work.
I think 0XC0000000 might be too large though. Something like 0x10001000
would be fine. I know for a fact some things like APE (from Unsanity)
will load themselves at 0xB00000000 (I think), and I am working on some
bundle injection program that injects at 0xC0000000.
On Sunday, Jun 15, 2003, at 19:16 America/Montreal, Sailor Quasar wrote:
After much grief, I have finally solved the strange dyld prebinding
link warnings that continuously popped up whenever I tried to link
with my custom framework, embedded or not. It turns out that there's a
little-known barely-documented requirement to link frameworks and
applications that use them without warnings: the address ranges have
to not overlap. The solution is to add a "-seg1addr" option to the
linker flags in the PB target settings for the framework target. I've
had to guess the proper value and it's probably wrong, but 0xC0000000
is working for me. I thought that this would be helpful to all the
people I saw in the archives looking for solutions to this annoying
thing :). Embedded or shared, debugging and linking, prebinding and
all, this removes All the linker warnings and errors for custom
frameworks :).
-- Sailor Quasar, guardian of Leraz's memory
"Face of stone, mind of calm, soul of love."
Email: email@hidden
_______________________________________________
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.
Jeff Roy
--
Co-Founder of MacStorm
Programmer at MacStorm
http://www.macstorm.org
http://www.theworldcrafters.com
email@hidden
_______________________________________________
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.