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
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.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden