|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
get SP on Solaris (SPARC) with GCC 3.3.2
From: Inode (inode
mediaservice.net)
Date: Tue Jan 13 2004 - 09:27:01 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I was testing some exploit on my solaris 8 box.
the function:
unsigned long get_sp(void)
{
__asm__("mov %sp,%i0");
}
doesn't work if compiled with the gcc 3.3.2, the address returned by the
function will be the current PC.
If compiler with gcc 3.2 work fine.
any idea?
Thanks in advance
Inode_
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]