[ Home | Liste | F.A.Q. | Risorse | Cerca... ]


[ Data: precedente | successivo | indice ] [ Argomento: precedente | successivo | indice ]


Archivio: Maggio 2001 ml@sikurezza.org
Soggetto: Re: %esp
Mittente: Leonardo Di Lella
Data: 30 May 2001 22:11:53 -0000
Re!

> Infatti sottrae proprio 20 Byte !!!
> Guarda la mia sessione di disassemblamento ...
> 
> $ gcc x.c
> $ gdb a.out
> GNU gdb 19991004
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-redhat-linux"...
> (gdb) disassemble seg
> Dump of assembler code for function seg:
> 0x8048398 <seg>:        push   %ebp
> 0x8048399 <seg+1>:      mov    %esp,%ebp
> 0x804839b <seg+3>:      sub    $0x14,%esp
> 0x804839e <seg+6>:      leave
> 0x804839f <seg+7>:      ret
> End of assembler dump.
> (gdb)                 

Si, ho trovato il problema, gcc 2.95 usa un flag per 'alignare' piu stack.
Ma se usi : -mpreferred-stack-boundary=2 non lo fa !
Ma perche align di piu ? 

Uso debian unstable + 2.4.4 + duron 800 mghz

> Tu su che sistema l'hai compilato ?

> ByeZ
> 	ORK

m.f.g

Leonardo Di Lella

--
www.comfire.de			leonardo.dilella@comfire.de
www.netline-ag.de		leo@netline-ag.de

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA65gPGYICiPPk92QoRAu48AJ9pmwUsxoJN6Cl8QsnSPcTTtlYQSgCfcr/f
pNm9BmXREvnmSXOdgR46kR8=
=BrLb
-----END PGP SIGNATURE-----

________________________________________________________
http://www.sikurezza.org - Italian Security Mailing List




[ Home | Liste | F.A.Q. | Risorse | Cerca... ]

www.sikurezza.org - Italian Security Mailing List
(c) 1999-2005