Document QEMU persistent hook on mipsel

This adds a new persistent hook library `mipsel_read_into_a0.c`. With
it, you can test the persistent hook on the *mipsel* architecture.

I'm also updating the README in `utils/qemu_persistent_hook` and
Makefile and explain how to test the persistent hook on *mipsel*.

This all works thanks to qemuafl already having the correct CPU struct
for *mipsel* in `qemuafl/api.h`.

This patch also updates the root `.gitignore` file to ignore the two
test binaries `test` and `mipsel_test`.
This commit is contained in:
Justus Perlwitz
2025-06-04 10:13:59 +09:00
parent ee480aeb7a
commit 9951c38515
4 changed files with 158 additions and 2 deletions

View File

@ -2,5 +2,9 @@ all:
$(CC) -no-pie test.c -o test
$(CC) -fPIC -shared read_into_rdi.c -o read_into_rdi.so
all_mipsel: test.c mipsel_read_into_a0.c
$(CPU_TARGET_CC) -no-pie test.c -o mipsel_test
$(CC) -fPIC -shared mipsel_read_into_a0.c -o mipsel_read_into_a0.so
clean:
rm -rf in out test read_into_rdi.so
rm -rf in out test read_into_rdi.so mipsel_test mipsel_read_into_a0.so