diff options
author | Philippe Mathieu-Daudé | 2021-04-06 15:39:44 +0200 |
---|---|---|
committer | Laurent Vivier | 2021-05-13 18:09:47 +0200 |
commit | b51d44677193002926a7519df89153df847f5f6b (patch) | |
tree | 70cf65f798b32f437c5f1cb11072a54f9279c57a /hw/pci-host/meson.build | |
parent | cutils: fix memory leak in get_relocated_path() (diff) | |
download | qemu-b51d44677193002926a7519df89153df847f5f6b.tar.gz qemu-b51d44677193002926a7519df89153df847f5f6b.tar.xz qemu-b51d44677193002926a7519df89153df847f5f6b.zip |
hw/mem/meson: Fix linking sparse-mem device with fuzzer
sparse-mem.c is added to the 'mem_ss' source set, which itself
is conditionally added to softmmu_ss if CONFIG_MEM_DEVICE is
selected.
But if CONFIG_MEM_DEVICE isn't selected, we get a link failure
even if CONFIG_FUZZ is selected:
/usr/bin/ld: tests_qtest_fuzz_generic_fuzz.c.o: in function `generic_pre_fuzz':
tests/qtest/fuzz/generic_fuzz.c:826: undefined reference to `sparse_mem_init'
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
Fix by adding sparse-mem.c directly to the softmmu_ss set.
Fixes: 230376d285b ("memory: add a sparse memory device for fuzzing")
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20210406133944.4193691-1-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/pci-host/meson.build')
0 files changed, 0 insertions, 0 deletions