Fix another case.
authorZoltan Varga <vargaz@gmail.com>
Thu, 4 Feb 2010 04:38:53 +0000 (04:38 -0000)
committerZoltan Varga <vargaz@gmail.com>
Thu, 4 Feb 2010 04:38:53 +0000 (04:38 -0000)
svn path=/trunk/mono/; revision=150823

mono/mini/aot-compiler.c

index 63e8bb1c4dd7cfe4b682d4a679186ea20a1475e0..f5e4e4d260b7ae9e1269997a39e125a7948b9a42 100644 (file)
@@ -2722,7 +2722,7 @@ emit_and_reloc_code (MonoAotCompile *acfg, MonoMethod *method, guint8 *code, gui
                                        if (plt_offset != -1) {
                                                /* This patch has a PLT entry, so we must emit a call to the PLT entry */
                                                direct_call = TRUE;
-                                               sprintf (direct_call_target, "%sp_%d", acfg->temp_prefix, plt_offset);
+                                               sprintf (direct_call_target, "%s%sp_%d", acfg->llvm_label_prefix, acfg->temp_prefix, plt_offset);
                
                                                /* Nullify the patch */
                                                patch_info->type = MONO_PATCH_INFO_NONE;