site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 3 apr 2006, at 21:34, Jakub Szefer wrote: I am trying to write a jump table in assembly for the PowerPC processor and am running into some problems with defining external symbols. I have something like: .globl function_new .extern function_old function_new: b function_old Jonas _______________________________________________ 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... Have a look at the output of "gcc -S" when calling an external function in a C program. You have to create a stub like that as well (and the linker will remove it if it's not necessary). Additionally, all global symbols in Mac OS X automatically get an underscore prepended to them by GCC. This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe