ref: 63818ff61c81da366ea7920d592444e3be6fd4e0
parent: f5f308621e268c26b394a989941e582b8e73f4f7
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Mar 7 03:42:44 EST 2017
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.
--- a/crt/amd64-linux/crt.as
+++ /dev/null
@@ -1,8 +1,0 @@
- .file "crt.as"
- .text
- .global _start
-
-_start:
- call main
- movl %eax, %edi
- call exit
--- /dev/null
+++ b/crt/amd64-linux/crt.s
@@ -1,0 +1,8 @@
+ .file "crt.as"
+ .text
+ .global _start
+
+_start:
+ call main
+ movl %eax, %edi
+ call exit
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -187,7 +187,7 @@
addarg(tool, t->outfile);
break;
case TEEAS:
- t->outfile = outfname(infile, "as");
+ t->outfile = outfname(infile, "s");
addarg(tool, t->outfile);
break;
case AS:
@@ -275,7 +275,7 @@
return CC2;
if (!strcmp(dot, ".qbe"))
return QBE;
- if (!strcmp(dot, ".as"))
+ if (!strcmp(dot, ".s"))
return AS;
if (!strcmp(dot, ".o"))
return LD;