'Initialize the value of registers before start execution of the code

I ran an elf file (arch i386-32-little), in gdb and I wonder if there is a way to take control over the values of the global registers (ebx, edx, ecx, eax...) before execute the first instruction in the code?

I read those answers:

I tried to check also those but I didn't find my answer:



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source