[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: executing malloced memory on ia64 or sth else? (SableVM porting)



On Sat, Feb 22, 2003 at 11:41:17PM +0100, Grzegorz B. Prokopski wrote:
> Simplyfing the whole thing - it copies some code to malloced memory
> and then jumps to it, by executing:
> goto *(pc->implementation);
> where implemenation points to the code that is to be executed.
> 
>   (gdb) print (char*)pc->implementation
>   $29 = 0x6000000000022800 "\v\220àK?# \001H  "

First problem -- function pointers on ia64, parisc & ppc64 are not
pointers to the code you're going to execute, they're pointers to a
function descriptor.

See https://lists.linuxia64.org/archives/linux-ia64/2001-March/001254.html

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk



Reply to: