Browse Source
The binaries move to the root directory, e.g. qemu-system-i386 or qemu-arm. This requires changes to qtests, CI, etc. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>pull/96/head
32 changed files with 181 additions and 344 deletions
@ -1,5 +1,13 @@ |
|||
if 'CONFIG_HAS_LD_DYNAMIC_LIST' in config_host |
|||
plugin_ldflags = ['-Wl,--dynamic-list=' + (meson.build_root() / 'qemu-plugins-ld.symbols')] |
|||
elif 'CONFIG_HAS_LD_EXPORTED_SYMBOLS_LIST' in config_host |
|||
plugin_ldflags = ['-Wl,-exported_symbols_list,' + (meson.build_root() / 'qemu-plugins-ld64.symbols')] |
|||
else |
|||
plugin_ldflags = [] |
|||
endif |
|||
|
|||
specific_ss.add(when: 'CONFIG_PLUGIN', if_true: [files( |
|||
'loader.c', |
|||
'core.c', |
|||
'api.c', |
|||
)]) |
|||
), declare_dependency(link_args: plugin_ldflags)]) |
|||
|
|||
@ -1,2 +0,0 @@ |
|||
softmmu-main-y = softmmu/main.o |
|||
main.o-cflags := $(SDL_CFLAGS) |
|||
@ -1,39 +0,0 @@ |
|||
QEMU_PROG_FUZZ=qemu-fuzz-$(TARGET_NAME)$(EXESUF) |
|||
|
|||
fuzz-obj-y += tests/qtest/libqtest.o |
|||
fuzz-obj-y += $(libqos-obj-y) |
|||
fuzz-obj-y += tests/qtest/fuzz/fuzz.o # Fuzzer skeleton |
|||
fuzz-obj-y += tests/qtest/fuzz/fork_fuzz.o |
|||
fuzz-obj-y += tests/qtest/fuzz/qos_fuzz.o |
|||
fuzz-obj-y += tests/qtest/fuzz/qtest_wrappers.o |
|||
|
|||
# Targets
|
|||
fuzz-obj-$(CONFIG_PCI_I440FX) += tests/qtest/fuzz/i440fx_fuzz.o |
|||
fuzz-obj-$(CONFIG_VIRTIO_NET) += tests/qtest/fuzz/virtio_net_fuzz.o |
|||
fuzz-obj-$(CONFIG_SCSI) += tests/qtest/fuzz/virtio_scsi_fuzz.o |
|||
|
|||
FUZZ_CFLAGS += -I$(SRC_PATH)/tests -I$(SRC_PATH)/tests/qtest |
|||
|
|||
# Linker Script to force coverage-counters into known regions which we can mark
|
|||
# shared
|
|||
FUZZ_LDFLAGS += -Xlinker -T$(SRC_PATH)/tests/qtest/fuzz/fork_fuzz.ld |
|||
|
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_inb |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_inw |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_inl |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_outb |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_outw |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_outl |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_readb |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_readw |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_readl |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_readq |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_writeb |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_writew |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_writel |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_writeq |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_memread |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_bufread |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_memwrite |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_bufwrite |
|||
FUZZ_LDFLAGS += -Wl,-wrap,qtest_memset |
|||
@ -0,0 +1,35 @@ |
|||
specific_fuzz_ss.add(files('fuzz.c', 'fork_fuzz.c', 'qos_fuzz.c', |
|||
'qtest_wrappers.c'), qos) |
|||
|
|||
# Targets |
|||
specific_fuzz_ss.add(when: 'CONFIG_I440FX', if_true: files('i440fx_fuzz.c')) |
|||
specific_fuzz_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio_net_fuzz.c')) |
|||
specific_fuzz_ss.add(when: 'CONFIG_VIRTIO_SCSI', if_true: files('virtio_scsi_fuzz.c')) |
|||
|
|||
# unfortunately declare_dependency does not support link_depends, so |
|||
# this will be duplicated in meson.build |
|||
fork_fuzz = declare_dependency( |
|||
link_args: ['-fsanitize=fuzzer', |
|||
'-Wl,-T,' + (meson.current_source_dir() / 'fork_fuzz.ld'), |
|||
'-Wl,-wrap,qtest_inb', |
|||
'-Wl,-wrap,qtest_inw', |
|||
'-Wl,-wrap,qtest_inl', |
|||
'-Wl,-wrap,qtest_outb', |
|||
'-Wl,-wrap,qtest_outw', |
|||
'-Wl,-wrap,qtest_outl', |
|||
'-Wl,-wrap,qtest_readb', |
|||
'-Wl,-wrap,qtest_readw', |
|||
'-Wl,-wrap,qtest_readl', |
|||
'-Wl,-wrap,qtest_readq', |
|||
'-Wl,-wrap,qtest_writeb', |
|||
'-Wl,-wrap,qtest_writew', |
|||
'-Wl,-wrap,qtest_writel', |
|||
'-Wl,-wrap,qtest_writeq', |
|||
'-Wl,-wrap,qtest_memread', |
|||
'-Wl,-wrap,qtest_bufread', |
|||
'-Wl,-wrap,qtest_memwrite', |
|||
'-Wl,-wrap,qtest_bufwrite', |
|||
'-Wl,-wrap,qtest_memset'] |
|||
) |
|||
|
|||
specific_fuzz_ss.add(fork_fuzz) |
|||
Loading…
Reference in new issue