On Wed, Nov 18, 2009 at 8:23 PM, Mike Hearn <
mi...@plan99.net> wrote:
> Is that the first fixup?
What do you mean? I can't find any more calls to FIXUP_GOT_RELOC.
> Why did it not work in gdb
Just tried again and this time it worked. I seem to have done
something wrong compiling the stub file before.
> - knowing the
> exact instruction or address it faults on would be the next step.
When using this:
1: void* addr = dlsym(handle, "jpeg_std_message_table");
2: printf("%d\n", (int)addr);
3: asm("\tmovl %0, %%eax\n"
4: "\tmovl %%eax, " "jpeg_std_message_table" "@GOT(%%ebx)\n" : :
"r" (addr));
It prints an address of 10800352 and it crashes in line 3. I don't
know if that helps you, as I said I don't know assembler (or what's
going on in those lines).