2 # Modules need more symbols than just those in plugins/qemu-plugins.symbols
4 if 'CONFIG_HAS_LD_DYNAMIC_LIST' in config_host
5 plugin_ldflags = ['-Wl,--dynamic-list=' + (meson.project_build_root() / 'qemu-plugins-ld.symbols')]
6 elif 'CONFIG_HAS_LD_EXPORTED_SYMBOLS_LIST' in config_host
7 plugin_ldflags = ['-Wl,-exported_symbols_list,' + (meson.project_build_root() / 'qemu-plugins-ld64.symbols')]
11 specific_ss.add(when: 'CONFIG_PLUGIN', if_true: [files(
15 ), declare_dependency(link_args: plugin_ldflags)])