• 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: Custom frameworks and linking - SOLVED!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Custom frameworks and linking - SOLVED!
      • From: Bill Cheeseman <email@hidden>
    • Re: Custom frameworks and linking - SOLVED!
      • From: Wade Tregaskis <email@hidden>
References: 
 >Custom frameworks and linking - SOLVED! (From: Sailor Quasar <email@hidden>)

  • Prev by Date: Custom frameworks and linking - SOLVED!
  • Next by Date: Re: Custom frameworks and linking - SOLVED!
  • Previous by thread: Custom frameworks and linking - SOLVED!
  • Next by thread: Re: Custom frameworks and linking - SOLVED!
  • Index(es):
    • Date
    • Thread