1plugin_ldflags = [] 2# Modules need more symbols than just those in plugins/qemu-plugins.symbols 3if not enable_modules 4 if 'CONFIG_HAS_LD_DYNAMIC_LIST' in config_host 5 plugin_ldflags = ['-Wl,--dynamic-list=qemu-plugins-ld.symbols'] 6 elif 'CONFIG_HAS_LD_EXPORTED_SYMBOLS_LIST' in config_host 7 plugin_ldflags = ['-Wl,-exported_symbols_list,qemu-plugins-ld64.symbols'] 8 endif 9endif 10 11specific_ss.add(when: 'CONFIG_PLUGIN', if_true: [files( 12 'loader.c', 13 'core.c', 14 'api.c', 15), declare_dependency(link_args: plugin_ldflags)]) 16