- rsas is a toy assembler targeting x64 Linux
rsas source.swill assemblesource.sinto a Linux ELF64 object file. The output path can be specied with the-oargument, defaulting toa.out
- Assemble, link and demo a simple cat implementation on a Linux x64 host
cargo install --path .
rsas as-examples/cat.s -o cat.o
ld -o rsas-cat cat.o
echo 'aaa' > a.txt
echo 'bbb' > b.txt
./rsas-cat a.txt b.txt
# Output:
# aaa
# bbb- AT&T assembly syntax
- No Cargo dependencies
- Supports global and local symbols
- Supports multiple types of relocations