Skip to content

Commit

Permalink
fuzz: Add a linker fuzzer
Browse files Browse the repository at this point in the history
We add a fuzzer for the linker, that uses RISC-V instruction encoding
logic to create a sequence of valid instructions. Which then is compiled
into a ELF binary and passed to the linker.

Expectation here is that the fuzzer would always generate a valid ELF
binary with valid instructions, and the linker should be able to link it
without any issues.

Currently the ELF binary is limited to one section (.text) and no symbols.
We may want to extend that in the future.

Signed-off-by: Aman <[email protected]>
  • Loading branch information
aman4150 authored and koute committed Jan 28, 2025
1 parent 1c0f92d commit 9337e13
Show file tree
Hide file tree
Showing 3 changed files with 687 additions and 0 deletions.
305 changes: 305 additions & 0 deletions fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9337e13

Please sign in to comment.