Re: PowerPC assembly jump table
Re: PowerPC assembly jump table
- Subject: Re: PowerPC assembly jump table
- From: Jonas Maebe <email@hidden>
- Date: Mon, 3 Apr 2006 21:39:20 +0200
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
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:
This email sent to email@hidden