Vulnerability Development mailing list archives
get SP on Solaris (SPARC) with GCC 3.3.2
From: Inode <inode () mediaservice net>
Date: Tue, 13 Jan 2004 16:27:01 +0100
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_
Current thread:
- get SP on Solaris (SPARC) with GCC 3.3.2 Inode (Jan 13)
- Re: get SP on Solaris (SPARC) with GCC 3.3.2 Jonathon Giffin (Jan 13)
- Re: get SP on Solaris (SPARC) with GCC 3.3.2 Inode (Jan 13)
- Re: get SP on Solaris (SPARC) with GCC 3.3.2 Jonathon Giffin (Jan 13)
- Re: get SP on Solaris (SPARC) with GCC 3.3.2 Inode (Jan 13)
- Re: get SP on Solaris (SPARC) with GCC 3.3.2 Jonathon Giffin (Jan 13)