Ulrich Weigand wrote:
From what I can see, you are actually getting LE model code (omitting the ebp stuff which you can avoid using -fomit-frame-pointer):
movl %gs:0, %eax movl __foo_dispatch@NTPOFF(%eax), %edx movl (%edx), %ecx jmp *%ecx
Note that NTPOFF is used; for IE, you'd see INDNTPOFF or GOTNTPOFF and an additional indirection.
Right, thanks! Makes sense.