News for hackers. Stuff that matters.
Re:Where do argc and argv come from? by ploxiln on Monday August 10, 2020 @02:17PM (#24112287)
Just in case the author shows up here, there's a confusing little typo in "Passing argv to our program":

    _start:
     popq %rdi
     movq %rsp, %rdi
     callq main
the second %rdi should be %rsi, which is confirmed by the explanatory test:

> If it's really that easy all we will need to do is add movq %rsp, %rsi after the popq %rdi we just added.

EDIT: now fixed

There are no comments on this comment yet.