diff mbox series

[PULL,5/5] modules: turn off lazy binding

Message ID 20201029110957.11062-6-kraxel@redhat.com
State New, archived
Headers show
Series [PULL,1/5] virtio-gpu: add virtio-gpu-pci module | expand

Commit Message

Gerd Hoffmann Oct. 29, 2020, 11:09 a.m. UTC
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
 util/module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/util/module.c b/util/module.c
index 503c399421c5..c65060c167df 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
-    flags = G_MODULE_BIND_LAZY;
+    flags = 0;
     if (!export_symbols) {
         flags |= G_MODULE_BIND_LOCAL;