Re: dlsym question
Re: dlsym question
- Subject: Re: dlsym question
- From: Peter O'Gorman <email@hidden>
- Date: Sat, 09 Apr 2011 14:46:30 -0500
On 04/09/2011 10:04 AM, Shantonu Sen wrote:
What are you really trying to do?
Shantonu
On Apr 9, 2011, at 4:01 AM, Nat! wrote:
I speculate that the problem is, that in i386 the symbol starts with a "." instead of an underscore and that the possibly naive dlsym code gets confused by this.
dlsym looks up C symbols, all of which have a leading underscore, the
man page explains this:
The symbol name passed to dlsym() is the name used in C source code. For
example to find the address of function foo(), you would pass "foo" as
the symbol name. This is unlike the older dyld APIs which required a
leading underscore. If you looking up a C++ symbol, you need to use the
mangled C++ symbol name.
So, yeah, what Shantonu said.
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden