Terraspace / UASM

UASM - Macro Assembler
http://www.terraspace.co.uk/uasm.html
Other
221 stars 49 forks source link

Linux stack balancing regression in 2.56 #190

Open john-terraspace opened 1 year ago

john-terraspace commented 1 year ago

Hello sir johnsa; I faced a problem. Code bellow worked in version 255 but not in 256, please, can you check. Thanks. Linux x86_64, stack unbalanced. Code: [Select] ;uasm -elf64 test.asm ;gcc test.o -no-pie -fno-pie -lc -o test ;./test .X64 option casemap:none

InitializeRandoms proto srand proto :dword exit proto :dword

.code main proc uses rbx rbp r12 r13 r14 r15 _argc:dword,_argv:ptr

local argc:dword local argv:ptr

mov argc,_argc mov argv,_argv

invoke InitializeRandoms invoke exit,0 main endp

;------------------------------------------------------------- ;no locals align 16 InitializeRandoms proc ;sub rsp,8 ok invoke srand,4711 ;add rsp,8 !!! <--------------| ret InitializeRandoms endp ;-------------------------------------------------------------

end main

john-terraspace commented 3 months ago

Fixed in 2.57