dlsym(...) and Intel Macs
dlsym(...) and Intel Macs
- Subject: dlsym(...) and Intel Macs
- From: Damien Sorresso <email@hidden>
- Date: Mon, 17 Jul 2006 21:08:25 -0500
Does dlsym(...) not work the same on Intel Macs? I have some symbol
loading code that works just fine on PowerPC Macs, but on Intel Macs,
it returns NULL. Here is a line.
int *debug_addr = (int *)dlsym(mainHandle, "__debug_level");
This loads the symbol named `__debug_level'. This code is executed
from a dynamically-loaded bundle, and it loads the address of the
symbol from the main executable. On PowerPC, I get the address you'd
get by doing `nm' on the executable. On Intel Macs, I get NULL. Any
ideas what's happening here?
--
Damien Sorresso
"A mathematician is a device for turning coffee into theorems."
-Paul Erdos
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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