[hackers] [scc] Change .as extension to .s || Roberto E. Vargas Caballero
commit 10179858ebe703a0245279a17c08f97109510f45
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Mar 7 08:42:44 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Mar 7 08:42:44 2017 +0100
Change .as extension to .s
.as is a two letter extension which makes harder to write makefile rules.
Commonly assembler files are noted using .s extension.
diff --git a/crt/amd64-linux/crt.as b/crt/amd64-linux/crt.as
deleted file mode 100644
index 26ab0e5..0000000
--- a/crt/amd64-linux/crt.as
+++ /dev/null
_AT_@ -1,8 +0,0 @@
- .file "crt.as"
- .text
- .global _start
-
-_start:
- call main
- movl %eax, %edi
- call exit
diff --git a/crt/amd64-linux/crt.s b/crt/amd64-linux/crt.s
new file mode 100644
index 0000000..26ab0e5
--- /dev/null
+++ b/crt/amd64-linux/crt.s
_AT_@ -0,0 +1,8 @@
+ .file "crt.as"
+ .text
+ .global _start
+
+_start:
+ call main
+ movl %eax, %edi
+ call exit
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index 8705851..cdfdb38 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -187,7 +187,7 @@ settool(int tool, char *infile, int nexttool)
addarg(tool, t->outfile);
break;
case TEEAS:
- t->outfile = outfname(infile, "as");
+ t->outfile = outfname(infile, "s");
addarg(tool, t->outfile);
break;
case AS:
_AT_@ -275,7 +275,7 @@ toolfor(char *file)
return CC2;
if (!strcmp(dot, ".qbe"))
return QBE;
- if (!strcmp(dot, ".as"))
+ if (!strcmp(dot, ".s"))
return AS;
if (!strcmp(dot, ".o"))
return LD;
Received on Tue Mar 07 2017 - 08:44:27 CET
This archive was generated by hypermail 2.3.0
: Tue Mar 07 2017 - 08:48:18 CET