=======================================================
bug result
=======================================================
080485c5 <main>:
80485c5: 0f 1f 04 00 nopl (%eax,%eax,1)
80485c9: 8d 4c 24 04 lea 0x4(%esp),%ecx
80485cd: 83 e4 f0 and $0xfffffff0,%esp
=======================================================
fixed result
=======================================================
08048598 <main>:
8048598: 0f 1f 44 00 01 nopl 0x1(%eax,%eax,1)
804859d: 8d 4c 24 04 lea 0x4(%esp),%ecx
80485a1: 83 e4 f0 and $0xfffffff0,%esp
is it OK?
=======================================================
=======================================================
@@ -40474,7 +40474,7 @@ static void
x86_print_call_or_nop (FILE *file, const char *target)
{
if (flag_nop_mcount)
- fprintf (file, "1:\tnopl 0x00(%%eax,%%eax,1)\n"); /* 5 byte nop. */
+ fprintf (file, "1:\tnopl 0x01(%%eax,%%eax,1)\n"); /* 5 byte nop. */
else
fprintf (file, "1:\tcall\t%s\n", target);
}