Module Name:    src
Committed By:   christos
Date:           Fri Apr 22 17:40:36 UTC 2016

Modified Files:
        src/external/gpl3/binutils/dist/bfd: elf32-m68k.c

Log Message:
Print the symbol that caused the text relocation for m68k like we do for
other platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/binutils/dist/bfd/elf32-m68k.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/bfd/elf32-m68k.c
diff -u src/external/gpl3/binutils/dist/bfd/elf32-m68k.c:1.6 src/external/gpl3/binutils/dist/bfd/elf32-m68k.c:1.7
--- src/external/gpl3/binutils/dist/bfd/elf32-m68k.c:1.6	Fri Jan 29 09:42:44 2016
+++ src/external/gpl3/binutils/dist/bfd/elf32-m68k.c	Fri Apr 22 13:40:36 2016
@@ -2813,7 +2813,13 @@ elf_m68k_check_relocs (bfd *abfd,
 		  && !(ELF32_R_TYPE (rel->r_info) == R_68K_PC8
 		       || ELF32_R_TYPE (rel->r_info) == R_68K_PC16
 		       || ELF32_R_TYPE (rel->r_info) == R_68K_PC32))
-		    info->flags |= DF_TEXTREL;
+		{
+		  if (info->warn_shared_textrel)
+		    (*_bfd_error_handler)
+		      (_("warning: dynamic relocation in readonly section `%s'"),
+		      h->root.root.string); 
+		  info->flags |= DF_TEXTREL;
+		}
 
 	      sreloc->size += sizeof (Elf32_External_Rela);
 
@@ -3431,6 +3437,10 @@ elf_m68k_discard_copies (struct elf_link
 	       s = s->next)
 	    if ((s->section->flags & SEC_READONLY) != 0)
 	      {
+		if (info->warn_shared_textrel)
+		  (*_bfd_error_handler)
+		    (_("warning: dynamic relocation in readonly section `%s'"),
+		    h->root.root.string); 
 		info->flags |= DF_TEXTREL;
 		break;
 	      }

Reply via email to