Justus Perlwitz 9951c38515 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`.
2025-06-05 10:00:45 +09:00

11 lines
331 B
Makefile

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 mipsel_test mipsel_read_into_a0.so