diff options
Diffstat (limited to 'src/host/buildvm.c')
-rw-r--r-- | src/host/buildvm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/host/buildvm.c b/src/host/buildvm.c index ef5f7fb9..ce892006 100644 --- a/src/host/buildvm.c +++ b/src/host/buildvm.c | |||
@@ -108,10 +108,16 @@ static const char *sym_decorate(BuildCtx *ctx, | |||
108 | sprintf(name, "%s%s%s", symprefix, prefix, suffix); | 108 | sprintf(name, "%s%s%s", symprefix, prefix, suffix); |
109 | p = strchr(name, '@'); | 109 | p = strchr(name, '@'); |
110 | if (p) { | 110 | if (p) { |
111 | #if LJ_TARGET_X86ORX64 | ||
111 | if (!LJ_64 && (ctx->mode == BUILD_coffasm || ctx->mode == BUILD_peobj)) | 112 | if (!LJ_64 && (ctx->mode == BUILD_coffasm || ctx->mode == BUILD_peobj)) |
112 | name[0] = '@'; | 113 | name[0] = '@'; |
113 | else | 114 | else |
114 | *p = '\0'; | 115 | *p = '\0'; |
116 | #elif (LJ_TARGET_PPC || LJ_TARGET_PPCSPE) && !LJ_TARGET_CONSOLE | ||
117 | /* Keep @plt. */ | ||
118 | #else | ||
119 | *p = '\0'; | ||
120 | #endif | ||
115 | } | 121 | } |
116 | p = (char *)malloc(strlen(name)+1); /* MSVC doesn't like strdup. */ | 122 | p = (char *)malloc(strlen(name)+1); /* MSVC doesn't like strdup. */ |
117 | strcpy(p, name); | 123 | strcpy(p, name); |