Module Name:    src
Committed By:   matt
Date:           Fri Mar  2 16:37:16 UTC 2012

Modified Files:
        src/external/gpl3/binutils/dist/bfd: elfxx-mips.c

Log Message:
Fix support for .protected symbols.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/binutils/dist/bfd/elfxx-mips.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/elfxx-mips.c
diff -u src/external/gpl3/binutils/dist/bfd/elfxx-mips.c:1.5 src/external/gpl3/binutils/dist/bfd/elfxx-mips.c:1.6
--- src/external/gpl3/binutils/dist/bfd/elfxx-mips.c:1.5	Sun Sep 25 04:32:35 2011
+++ src/external/gpl3/binutils/dist/bfd/elfxx-mips.c	Fri Mar  2 16:37:16 2012
@@ -5138,7 +5138,10 @@ mips_elf_calculate_relocation (bfd *abfd
 			   || ((r_type == R_MIPS_26 || r_type == R_MIPS_JALR)
 			       && target_is_16_bit_code_p));
 
-  local_p = h == NULL || SYMBOL_REFERENCES_LOCAL (info, &h->root);
+  local_p = h == NULL
+    || (h->got_only_for_calls
+	? SYMBOL_CALLS_LOCAL (info, &h->root)
+	: SYMBOL_REFERENCES_LOCAL (info, &h->root));
 
   gp0 = _bfd_get_gp_value (input_bfd);
   gp = _bfd_get_gp_value (abfd);

Reply via email to