aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coff.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-07-11 08:45:51 +0000
committerKai Tietz <kai.tietz@onevision.com>2010-07-11 08:45:51 +0000
commita7879ef118006fbac066d9901ce0a789f6858dd4 (patch)
treea246623f0b035877a7d9725008e195afec9324e2 /gas/config/obj-coff.c
parenta2f028ec359d0a88497b34349ce4aba82a7017ad (diff)
downloadgdb-a7879ef118006fbac066d9901ce0a789f6858dd4.zip
gdb-a7879ef118006fbac066d9901ce0a789f6858dd4.tar.gz
gdb-a7879ef118006fbac066d9901ce0a789f6858dd4.tar.bz2
2010-07-11 Kai Tietz <kai.tietz@onevision.com>
PR ld/11612 * config/obj-coff.c (obj_common_parse): Quote symbol-name. 2010-07-11 Kai Tietz <kai.tietz@onevision.com> * gas/pe/aligncomm-b.d: Regenerated content dump. * gas/pe/aligncomm-d,d: Regenerated content dump. * gas/i386/i386.exp: Disable for mingw 64-bit the intel-got64 test.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r--gas/config/obj-coff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 792affa..b71040a 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -218,10 +218,10 @@ obj_coff_common_parse (int ignore ATTRIBUTE_UNUSED, symbolS *symbolP, addressT s
}
/* Emit a string. Note no NUL-termination. */
- pfxlen = strlen (" -aligncomm:") + strlen (S_GET_NAME (symbolP)) + 1;
+ pfxlen = strlen (" -aligncomm:") + 2 + strlen (S_GET_NAME (symbolP)) + 1;
numlen = snprintf (numbuff, sizeof (numbuff), "%d", (int) align);
frag = frag_more (pfxlen + numlen);
- (void) sprintf (frag, " -aligncomm:%s,", S_GET_NAME (symbolP));
+ (void) sprintf (frag, " -aligncomm:\"%s\",", S_GET_NAME (symbolP));
memcpy (frag + pfxlen, numbuff, numlen);
/* Restore original subseg. */
subseg_set (current_seg, current_subseg);