What exactly is immediate gadget in ROP - security exploit technique in Return Oriented Programming?
I am reading some theory about ROPs and for Immediate Gadget is only written, that we have a pointer to the code sequence:
pop %ebx ; ret
Instruction
pop %ebx
will load the next dword into %ebx.
But I do not get it why would this be useful? If you are loading something from some library you are trying to get some useful gadgets and why is there "Immediate"?