ref: ee04902bc672586ad9963bd85155c3d28cdab47d
parent: 9aef91ec428991fb223fac5d60863048e5deb019
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Jan 26 14:38:21 EST 2016
[cc2-intel] Use .L for local symbols Elf targets use .L like prefix for locals, while commonly z80 assemblers use . and a.out systems use L.
--- a/cc2/arch/amd64-sysv/code.c
+++ b/cc2/arch/amd64-sysv/code.c
@@ -47,7 +47,7 @@
if (sym->numid == 0 && (sym->numid = ++id) == 0)
error(EIDOVER);
- sprintf(name, ".%d", sym->numid);
+ sprintf(name, ".L%d", sym->numid);
return name;
}
--- a/cc2/arch/i386-sysv/code.c
+++ b/cc2/arch/i386-sysv/code.c
@@ -47,7 +47,7 @@
if (sym->numid == 0 && (sym->numid = ++id) == 0)
error(EIDOVER);
- sprintf(name, ".%d", sym->numid);
+ sprintf(name, ".L%d", sym->numid);
return name;
}