├── .github └── workflows │ └── rust.yml ├── .gitignore ├── .gitlab-ci.yml ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── NOTES.md ├── README.md ├── src ├── bin │ └── ld.rs ├── lib.rs ├── link.rs └── opt.rs └── tests ├── .gitignore ├── Makefile ├── bss_asm.s ├── helloworld2_asm1.s ├── helloworld2_asm2.s ├── helloworld3_asm_library.s ├── helloworld3_asm_main.s ├── helloworld4_asm_library.s ├── helloworld4_asm_main.s ├── helloworld4_asm_syscall.s ├── helloworld4_c_library.c ├── helloworld4_c_main.c ├── helloworld_asm.s ├── helloworld_c.c └── uname_asm.s /.github/workflows/rust.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/.github/workflows/rust.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/.gitlab-ci.yml -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/LICENSE -------------------------------------------------------------------------------- /NOTES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/NOTES.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/README.md -------------------------------------------------------------------------------- /src/bin/ld.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/src/bin/ld.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/link.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/src/link.rs -------------------------------------------------------------------------------- /src/opt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/src/opt.rs -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/.gitignore -------------------------------------------------------------------------------- /tests/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/Makefile -------------------------------------------------------------------------------- /tests/bss_asm.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/bss_asm.s -------------------------------------------------------------------------------- /tests/helloworld2_asm1.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld2_asm1.s -------------------------------------------------------------------------------- /tests/helloworld2_asm2.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld2_asm2.s -------------------------------------------------------------------------------- /tests/helloworld3_asm_library.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld3_asm_library.s -------------------------------------------------------------------------------- /tests/helloworld3_asm_main.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld3_asm_main.s -------------------------------------------------------------------------------- /tests/helloworld4_asm_library.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld4_asm_library.s -------------------------------------------------------------------------------- /tests/helloworld4_asm_main.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld4_asm_main.s -------------------------------------------------------------------------------- /tests/helloworld4_asm_syscall.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld4_asm_syscall.s -------------------------------------------------------------------------------- /tests/helloworld4_c_library.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld4_c_library.c -------------------------------------------------------------------------------- /tests/helloworld4_c_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld4_c_main.c -------------------------------------------------------------------------------- /tests/helloworld_asm.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/helloworld_asm.s -------------------------------------------------------------------------------- /tests/helloworld_c.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { printf("Hello world!\n"); } 4 | -------------------------------------------------------------------------------- /tests/uname_asm.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiegec/cold/HEAD/tests/uname_asm.s --------------------------------------------------------------------------------