Vulnerability Development mailing list archives
Re: get SP on Solaris (SPARC) with GCC 3.3.2
From: Manu <nobody () guzu net>
Date: Tue, 28 Dec 2004 03:48:56 +0100
Inode wrote:
On my box the problem seem to be another... (gdb) disass get_sp Dump of assembler code for function get_sp: 0x00010dd8 <get_sp+0>: mov %sp, %i0 0x00010ddc <get_sp+4>: retl 0x00010de0 <get_sp+8>: nop End of assembler dump. (gdb) but doesn't work...Another way to get SP (maybe more simple) it's get the ARGV[0] of out program... work fine, but now I would try to undestand why with gcc 3.3.2 doesn't work this function...
Maybe you should try to take a look at: http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Extended-Asm.html#Extended-Asm
Current thread:
- Re: get SP on Solaris (SPARC) with GCC 3.3.2 Manu (Dec 30)