'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:
- (Initial state of program registers and stack on Linux ARM): this one was the closest to one i looking for but from what i change its different in arm arch.
- (What is the default register state when program launches (asm, linux)?) and according to this from what i see there is no way you can change there values
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 |
|---|
