diff --git a/misc/hv_prebuild/vm_cfg_checks.c b/misc/hv_prebuild/vm_cfg_checks.c index 4c73fccaf..3acf3e030 100644 --- a/misc/hv_prebuild/vm_cfg_checks.c +++ b/misc/hv_prebuild/vm_cfg_checks.c @@ -21,7 +21,6 @@ static uint8_t rtvm_uuids[][16] = { static uint8_t safety_vm_uuid1[16] = SAFETY_VM_UUID1; /* sanity check for below structs is not needed, so use a empty struct instead */ -struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM]; const struct pci_vdev_ops vhostbridge_ops; const struct pci_vdev_ops vpci_ivshmem_ops; const struct pci_vdev_ops vmcs9900_ops; diff --git a/misc/tools/acrn-crashlog/acrnprobe/Makefile b/misc/tools/acrn-crashlog/acrnprobe/Makefile index 7bc25674c..86f6f49e8 100644 --- a/misc/tools/acrn-crashlog/acrnprobe/Makefile +++ b/misc/tools/acrn-crashlog/acrnprobe/Makefile @@ -9,6 +9,7 @@ INCLUDE += -I $(CURDIR)/include -I $(SYSROOT)/usr/include/libxml2 INCLUDE += -I $(BUILDDIR)/include/acrnprobe CFLAGS += $(INCLUDE) CFLAGS += -fdata-sections +CFLAGS += -fcommon LDFLAGS += $(LIBS) -Wl,--gc-sections