Leaving some symbols in the executable
Leaving some symbols in the executable
- Subject: Leaving some symbols in the executable
- From: Rainer Brockerhoff <email@hidden>
- Date: Mon, 20 Dec 2004 19:00:12 -0200
Gentledevs,
I'm loading a dynamic library from my main program and I'd like that library to be able to call a few (but not all) routines which are inside my main executable. I have a single project with targets for the main executable and for the dynamic library.
After asking around and searching archives I tried putting the symbols I need to call inside the main target's "Exported Symbols File" option - or rather, inside a text file referenced by that option.
I also tried specifying the main executable in the library's -bundle_loader link flag. This got me into a problem with circular references, since both the main executable and the library call each other, but I found a workaround.
Anyway, everything works fine in the Development build, but in the Deployment build the library can't see the main executable's symbols at all. Checking the executable's innards I found that no symbols are preserved for deployment builds, even if specified in the "Exported Symbols File".
i have tried all combinations of settings I found in the Xcode doc and the man pages for ld(1), and couldn't find a solution. Either all symbols, including reams of unwanted debug information, are preserved, or all symbols are stripped.
So, does anyone know a way to leave in only _some_ symbols in the main executable?
TIA,
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"It's extremely unlucky to be superstitious, for no other reason
than it is always unlucky to be colossally stupid." (Stephen Fry)
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden