site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Am 09.04.2011 um 23:46 schrieb Nat!:
// dlsym() assumes symbolName passed in is same as in C source code // dyld assumes all symbol names have an underscore prefix char underscoredName[strlen(symbolName)+2]; underscoredName[0] = '_'; strcpy(&underscoredName[1], symbolName);
It occured to me, that it won't be able to find symbols a la extern void some_non_underscore_prefixed_routine( void) asm("some_non_underscore_prefixed_routine"); either. This automatic prefixing of '_' is clearly not optimal... Ciao Nat! --------------------------------------------------- Vom Reden wird die Kuh nicht gemolken. -- K. Immler _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Nat!