mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-19 08:02:15 -06:00
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
This commit is contained in:
parent
5869f8dd1f
commit
546323bdac
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ static int module_load_file(const char *fname, bool mayfail, bool export_symbols
|
||||||
|
|
||||||
assert(QTAILQ_EMPTY(&dso_init_list));
|
assert(QTAILQ_EMPTY(&dso_init_list));
|
||||||
|
|
||||||
flags = G_MODULE_BIND_LAZY;
|
flags = 0;
|
||||||
if (!export_symbols) {
|
if (!export_symbols) {
|
||||||
flags |= G_MODULE_BIND_LOCAL;
|
flags |= G_MODULE_BIND_LOCAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue