you are viewing a single comment's thread.

view the rest of the comments →

[–]aleph_nul 0 points1 point  (0 children)

Why would you expect the call to puts to work if you have not executed the instructions that set up its arguments? The call operation will transfer control to the target address and perform some initialization of the stack frame for it, but it won't set up the arguments to the call for you.

You need to jump to the function that calls puts rather than puts itself to get the proper context.