Seems like exit() ulibc stub does not work properly. It will act like the first defined function is called on atexit() ?!
I suspect pushed arguments on exit() and the noreturn somehow breaks the cdecl ABI not used by sysexit().
This needs investigation.
sysexit() works tho.
Seems like
exit()ulibc stub does not work properly. It will act like the first defined function is called onatexit()?!I suspect pushed arguments on
exit()and thenoreturnsomehow breaks the cdecl ABI not used bysysexit().This needs investigation.
sysexit()works tho.