Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/bfd Fix support for .protected s...



details:   https://anonhg.NetBSD.org/src/rev/87864eb77293
branches:  trunk
changeset: 777726:87864eb77293
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Mar 02 16:37:16 2012 +0000

description:
Fix support for .protected symbols.

diffstat:

 external/gpl3/binutils/dist/bfd/elfxx-mips.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 7b6adddde943 -r 87864eb77293 external/gpl3/binutils/dist/bfd/elfxx-mips.c
--- a/external/gpl3/binutils/dist/bfd/elfxx-mips.c      Fri Mar 02 16:29:31 2012 +0000
+++ b/external/gpl3/binutils/dist/bfd/elfxx-mips.c      Fri Mar 02 16:37:16 2012 +0000
@@ -5138,7 +5138,10 @@
                           || ((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);



Home | Main Index | Thread Index | Old Index