as: add some test cases under test/

This commit is contained in:
Mikael Pettersson 2015-04-06 16:34:22 +02:00
parent 099eb14679
commit 68a213eb76
4 changed files with 23 additions and 0 deletions

6
TODO
View File

@ -21,6 +21,12 @@ Tools:
- readelf: add support for relocs
- readelf: add support for program headers
- as:
* support .ident:
+ change strtab to have a finalizer which returns an image array,
+ use standard output_section for strtab
+ move strtab to tunit
+ have .ident append string to .comment strtab
+ finalize .comment strtab before output()
* add support for named sections
* add support for sub-sections
* add support for data directives (.word, .asciz, etc)

6
as/test/test1.s Normal file
View File

@ -0,0 +1,6 @@
.text
.globl start
start:
movei 1,0
jsys 94
halt

1
as/test/test2.c Normal file
View File

@ -0,0 +1 @@
int foo(void) { return 27; }

10
as/test/test2.s Normal file
View File

@ -0,0 +1,10 @@
.file "z.c"
.text
.globl foo
.type foo, @function
foo:
movei 1,33
popj 017,
.size foo, .-foo
.ident "GCC: (GNU) 4.3.0.- for XKL-2 (XKL LLC, Kirkland, WA, USA) Built 2013-08-15 23:03 +0200 on porter by mikpe"
.section .note.GNU-stack,"",@progbits