loading from the stack segment
David Livshin
dlivshin@inter.net.il
Thu Aug 19 20:42:00 GMT 2004
Hi,
Changing the sequence of instructions from
subl $9980,%esp
movl -9976(%ebp),%eax
to
movl -9976(%ebp),%eax
subl $9980,%esp
causes segmentation fault while executing memory load
movl -9976(%ebp),%eax
I don't see any dependency between those two instructions.
My guess is that
subl $9980,%esp
somehow establishes stack segment that
movl -9976(%ebp),%eax
reads from – however debugging the faulty/correct programs didn't show
any significant difference between the state of CPU at
movl -9976(%ebp),%eax
and I couldnt locate any documentation to support such an assumption.
Any thoughts and clarifications would be greatly appreciated.
Thank you in advance.
David Livshin
dlivshin@internet-zahav.net
http://www.dalsoft.esmartweb.com/
More information about the Binutils
mailing list