+2017-10-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elfxx-sparc.c (readonly_dynrelocs): Dump dynamic relocation
+       in read-only section with minfo.
+       (_bfd_sparc_elf_size_dynamic_sections): Likewise.
+
 2017-10-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elfxx-x86.h (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Update
 
 
          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 = htab->elf.irelplt;
                  srel->size += p->count * SPARC_ELF_RELA_BYTES (htab);
                  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);
+                   }
+
+         /* Not an error, just cut short the traversal.  */
                }
            }
        }