[hackers] [scc] [cc2-intel] Use .L for local symbols || Roberto E. Vargas Caballero
commit ee04902bc672586ad9963bd85155c3d28cdab47d
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Jan 26 19:38:21 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Jan 26 19:38:21 2016 +0100
[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.
diff --git a/cc2/arch/amd64-sysv/code.c b/cc2/arch/amd64-sysv/code.c
index db55be3..fea9edb 100644
--- a/cc2/arch/amd64-sysv/code.c
+++ b/cc2/arch/amd64-sysv/code.c
_AT_@ -47,7 +47,7 @@ symname(Symbol *sym)
if (sym->numid == 0 && (sym->numid = ++id) == 0)
error(EIDOVER);
- sprintf(name, ".%d", sym->numid);
+ sprintf(name, ".L%d", sym->numid);
return name;
}
diff --git a/cc2/arch/i386-sysv/code.c b/cc2/arch/i386-sysv/code.c
index c9a7612..8a55786 100644
--- a/cc2/arch/i386-sysv/code.c
+++ b/cc2/arch/i386-sysv/code.c
_AT_@ -47,7 +47,7 @@ symname(Symbol *sym)
if (sym->numid == 0 && (sym->numid = ++id) == 0)
error(EIDOVER);
- sprintf(name, ".%d", sym->numid);
+ sprintf(name, ".L%d", sym->numid);
return name;
}
Received on Tue Jan 26 2016 - 19:39:20 CET
This archive was generated by hypermail 2.3.0
: Tue Jan 26 2016 - 19:48:29 CET