Commit 70ee6389 authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

Libdw: Fix initial register collection on i386

RIP-relative addressing isn't available on i386.
parent dbad0d5d
......@@ -312,7 +312,8 @@ static bool set_initial_registers(Dwfl_Thread *thread,
"movl %%ebp, 0x14(%0)\n\t"
"movl %%esp, 0x18(%0)\n\t"
"movl %%edi, 0x1c(%0)\n\t"
"lea 0(%%eip), %%eax\n\t"
"movl here, %%eax\n\t"
"movl %%eax, 0x20(%0)\n\t"
: /* no output */
:"r" (&regs[0]) /* input */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment