i386.c (machopic_output_stub): Add indirection to jump.
authorEric Christopher <echristo@apple.com>
Fri, 3 Mar 2006 00:02:49 +0000 (00:02 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Fri, 3 Mar 2006 00:02:49 +0000 (00:02 +0000)
2006-03-02  Eric Christopher  <echristo@apple.com>

        * config/i386/i386.c (machopic_output_stub): Add indirection to
        jump.

From-SVN: r111652

gcc/ChangeLog
gcc/config/i386/i386.c

index 9c30db4cd0998d1f36a1ef708b3372bb1d06e025..38c8414d1c91691c145306712797725cf8e3e9ce 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-02  Eric Christopher  <echristo@apple.com>
+
+       * config/i386/i386.c (machopic_output_stub): Add indirection to
+       jump.
+
 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
 
        * loop.c: Removed.
@@ -37,7 +42,7 @@
        just like v9/ultrasparc/ultrasparc3.
        * doc/invoke.texi: Add documentation for "niagara" and improve
        existing documentation for ultrasparc variants.
-       
+
 2006-03-02  Diego Novillo  <dnovillo@redhat.com>
 
        * tree-ssa-operands.c (update_stmt_operands): Update documentation.
index fae111e986f0c9217e6302ae1e442807d1329e2f..262c0067c802f3cd3fe0be3021fb3bb59cda96d8 100644 (file)
@@ -17120,7 +17120,7 @@ machopic_output_stub (FILE *file, const char *symb, const char *stub)
     {
       fprintf (file, "\tcall LPC$%d\nLPC$%d:\tpopl %%eax\n", label, label);
       fprintf (file, "\tmovl %s-LPC$%d(%%eax),%%edx\n", lazy_ptr_name, label);
-      fprintf (file, "\tjmp %%edx\n");
+      fprintf (file, "\tjmp *%%edx\n");
     }
   else
     fprintf (file, "\tjmp *%s\n", lazy_ptr_name);