1 QEMU_PROG_FUZZ=qemu-fuzz-$(TARGET_NAME)$(EXESUF)
3 fuzz-obj-y += tests/qtest/libqtest.o
4 fuzz-obj-y += $(libqos-obj-y)
5 fuzz-obj-y += tests/qtest/fuzz/fuzz.o # Fuzzer skeleton
6 fuzz-obj-y += tests/qtest/fuzz/fork_fuzz.o
7 fuzz-obj-y += tests/qtest/fuzz/qos_fuzz.o
8 fuzz-obj-y += tests/qtest/fuzz/qtest_wrappers.o
11 fuzz-obj-$(CONFIG_PCI_I440FX) += tests/qtest/fuzz/i440fx_fuzz.o
12 fuzz-obj-$(CONFIG_VIRTIO_NET) += tests/qtest/fuzz/virtio_net_fuzz.o
13 fuzz-obj-$(CONFIG_SCSI) += tests/qtest/fuzz/virtio_scsi_fuzz.o
15 FUZZ_CFLAGS += -I$(SRC_PATH)/tests -I$(SRC_PATH)/tests/qtest
17 # Linker Script to force coverage-counters into known regions which we can mark
19 FUZZ_LDFLAGS += -Xlinker -T$(SRC_PATH)/tests/qtest/fuzz/fork_fuzz.ld
21 FUZZ_LDFLAGS += -Wl,-wrap,qtest_inb
22 FUZZ_LDFLAGS += -Wl,-wrap,qtest_inw
23 FUZZ_LDFLAGS += -Wl,-wrap,qtest_inl
24 FUZZ_LDFLAGS += -Wl,-wrap,qtest_outb
25 FUZZ_LDFLAGS += -Wl,-wrap,qtest_outw
26 FUZZ_LDFLAGS += -Wl,-wrap,qtest_outl
27 FUZZ_LDFLAGS += -Wl,-wrap,qtest_readb
28 FUZZ_LDFLAGS += -Wl,-wrap,qtest_readw
29 FUZZ_LDFLAGS += -Wl,-wrap,qtest_readl
30 FUZZ_LDFLAGS += -Wl,-wrap,qtest_readq
31 FUZZ_LDFLAGS += -Wl,-wrap,qtest_writeb
32 FUZZ_LDFLAGS += -Wl,-wrap,qtest_writew
33 FUZZ_LDFLAGS += -Wl,-wrap,qtest_writel
34 FUZZ_LDFLAGS += -Wl,-wrap,qtest_writeq
35 FUZZ_LDFLAGS += -Wl,-wrap,qtest_memread
36 FUZZ_LDFLAGS += -Wl,-wrap,qtest_bufread
37 FUZZ_LDFLAGS += -Wl,-wrap,qtest_memwrite
38 FUZZ_LDFLAGS += -Wl,-wrap,qtest_bufwrite
39 FUZZ_LDFLAGS += -Wl,-wrap,qtest_memset