mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 15:08:52 +00:00
Update skeleton
This commit is contained in:
30
README.md
30
README.md
@@ -98,5 +98,31 @@ reduces the program; check if the reduced program still fails on the test, and i
|
||||
given program with the reduced one; repeat until you get a small enough buggy program. For more
|
||||
information, we refer to the [Creduce](https://embed.cs.utah.edu/creduce/) homepage.
|
||||
|
||||
**[NOTICE]** The fuzzer supports Ubuntu 18.04 only. It may work for other platforms, but if it
|
||||
doesn't, please run the fuzzer in Ubuntu 18.04.
|
||||
**[NOTICE]** The fuzzer supports Ubuntu 18.04 or 20.04 only. It may work for other platforms, but if it
|
||||
doesn't, please run the fuzzer in Ubuntu 18.04 or 20.04.
|
||||
|
||||
|
||||
## Running RISC-V Binaries
|
||||
|
||||
### Install
|
||||
|
||||
```sh
|
||||
# Ubuntu 20.04 or higher
|
||||
apt install gcc-10-riscv64-linux-gnu qemu-user-static
|
||||
```
|
||||
|
||||
### Cross-Compilation and Architecture-Emulation
|
||||
|
||||
```sh
|
||||
# Compile C source code into RISC-V assembly
|
||||
riscv64-linux-gnu-gcc-10 hello.c -S -o hello.S
|
||||
|
||||
# Link to an RISC-V executable
|
||||
riscv64-linux-gnu-gcc-10 -static hello.S -o hello
|
||||
|
||||
# Emulate the executable
|
||||
qemu-riscv64-static ./hello
|
||||
|
||||
# Check the return value
|
||||
echo $?
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user