flat assembler
Message board for the users of flat assembler.
Index
> Linux > why the ENTER instruction fails on allocating > 1416 byte |
Author |
|
revolution 07 Jun 2005, 02:00
My guess is that RSP must be aligned by 8. 1417 does not align the stack properly. After subtracting 1417 from RSP then first instruction that uses the stack will also fail.
Last edited by revolution on 07 Jun 2005, 09:48; edited 2 times in total |
|||
07 Jun 2005, 02:00 |
|
fly 07 Jun 2005, 08:09
i tried a well-aligned value, but with the same result. interestingly the 32-bit counterpart allows a value below 3005 to work.
Code: format ELF executable section readable executable entry $ ;enter 3005, 0 enter 4096, 0 leave mov ebx, 0 mov eax, 1 int 0x80 edit: also 32byte alignment (e.g. 32768) will produce a segfault |
|||
07 Jun 2005, 08:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.