Skip to content
Advertisement

Trying to understand gcc’s complicated stack-alignment at the top of main that copies the return address

hi I have disassembled some programs (linux) I wrote to understand better how it works, and I noticed that the main function always begins with:

JavaScript

so my question is: why all this work is done ?? I only understand the use of:

JavaScript

the rest seems useless to me…

Advertisement

Answer

I’ve had a go at it:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement