.data.rel.ro(.local). sections are (local) read only data sections with
relocations.
For example:
static const struct hvm_mmio_handler *const
hvm_mmio_handlers[HVM_MMIO_HANDLER_NR] =
{
&hpet_mmio_handler,
&vlapic_mmio_handler,
&vioapic_mmio_handler,
&msixtbl_mmio_handler,
&iommu_mmio_handler
};
Allow these sections to be bundled so that section symbols can be
replaced with normal symbols, preventing them from being needlessly
included.
!strcmp(sym->sec->name + 6, sym->name))
return 1;
+ if (sym->type == STT_OBJECT &&
+ !strncmp(sym->sec->name, ".data.rel.ro.", 13) &&
+ !strcmp(sym->sec->name + 13, sym->name))
+ return 1;
+
+ if (sym->type == STT_OBJECT &&
+ !strncmp(sym->sec->name, ".data.rel.ro.local.", 19) &&
+ !strcmp(sym->sec->name + 19, sym->name))
+ return 1;
+
if (sym->type == STT_OBJECT &&
!strncmp(sym->sec->name, ".rodata.",8) &&
!strcmp(sym->sec->name + 8, sym->name))