ref: b64ef1259866bf8d967c6df793bc4fb79c0078ba
parent: 0f0f3817a993e617ecc06c1fe2df4f196d399eee
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Jan 26 17:11:40 EST 2016
[cc2-intel] Fix .space directive We have to put always a 0 after allocating any data in bss, and it menas that we also put a 0 in the case of .space, where it is not needed. For this reason we need a comma in the format string or we will have the size multiplied by 10.
--- a/cc2/arch/amd64-sysv/code.c
+++ b/cc2/arch/amd64-sysv/code.c
@@ -123,7 +123,7 @@
s = "\t.quad\t";
break;
default:
- s = "\t.space\t%llu";
+ s = "\t.space\t%llu,";
break;
}
}
--- a/cc2/arch/i386-sysv/code.c
+++ b/cc2/arch/i386-sysv/code.c
@@ -123,7 +123,7 @@
s = "\t.quad\t";
break;
default:
- s = "\t.space\t%llu";
+ s = "\t.space\t%llu,";
break;
}
}