summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorGerd Hoffmann2020-10-28 06:49:44 +0100
committerGerd Hoffmann2020-10-29 06:37:24 +0100
commit546323bdac18984c771ebefae1046ee61742f9ca (patch)
tree22ee90eb69fec909b1297ce3a5e6d77a9dc948bc /util
parentmodules: unbreak them on macos (diff)
downloadqemu-546323bdac18984c771ebefae1046ee61742f9ca.tar.gz
qemu-546323bdac18984c771ebefae1046ee61742f9ca.tar.xz
qemu-546323bdac18984c771ebefae1046ee61742f9ca.zip
modules: turn off lazy binding
We want missing symbols fail module load right away instead of having qemu abort later on in case lazy binding fails. Can happen -- for example -- when trying to load a module for a pci device (virtio-gpu-pci) into a qemu without pci support (qemu-system-avr). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20201028054944.5772-1-kraxel@redhat.com
Diffstat (limited to 'util')
-rw-r--r--util/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/module.c b/util/module.c
index 503c399421..c65060c167 100644
--- a/util/module.c
+++ b/util/module.c
@@ -132,7 +132,7 @@ static int module_load_file(const char *fname, bool mayfail, bool export_symbols
assert(QTAILQ_EMPTY(&dso_init_list));
- flags = G_MODULE_BIND_LAZY;
+ flags = 0;
if (!export_symbols) {
flags |= G_MODULE_BIND_LOCAL;
}