+2017-10-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elf32-sh.c (readonly_dynrelocs): Dump dynamic relocation
+ in read-only section with minfo.
+ (sh_elf_size_dynamic_sections): Likewise.
+
2017-10-08 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Remove
info->flags |= DF_TEXTREL;
+ info->callbacks->minfo (_("%B: dynamic relocation in read-only section `%A'\n"),
+ p->sec->owner, p->sec);
+
/* Not an error, just cut short the traversal. */
return FALSE;
}
srel = elf_section_data (p->sec)->sreloc;
srel->size += p->count * sizeof (Elf32_External_Rela);
if ((p->sec->output_section->flags & SEC_READONLY) != 0)
- info->flags |= DF_TEXTREL;
+ {
+ info->flags |= DF_TEXTREL;
+ info->callbacks->minfo (_("%B: dynamic relocation in read-only section `%A'\n"),
+ p->sec->owner, p->sec);
+ }
/* If we need relocations, we do not need fixups. */
if (htab->fdpic_p && !bfd_link_pic (info))