Source-Changes-HG archive

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

[src/trunk]: src/gnu/dist/binutils/bfd 2005-12-31 Valeriy E. Ushakov <uwe@N...



details:   https://anonhg.NetBSD.org/src/rev/b10a82702954
branches:  trunk
changeset: 586772:b10a82702954
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sat Dec 31 16:23:59 2005 +0000

description:
2005-12-31  Valeriy E. Ushakov  <uwe%NetBSD.org@localhost>
            Kaz Kojima  <kkojima%rr.iij4u.or.jp@localhost>

        * elf32-sh.c (sh_elf_relocate_section): Don't reset relocation
        for R_SH_REL32 in shared objects if the symbol is locally called.

Makes hidden and protected symbols in shared objects work.
This will be committed to the binutils mainline.

diffstat:

 gnu/dist/binutils/bfd/elf32-sh.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 5fbc15bf4186 -r b10a82702954 gnu/dist/binutils/bfd/elf32-sh.c
--- a/gnu/dist/binutils/bfd/elf32-sh.c  Sat Dec 31 14:33:13 2005 +0000
+++ b/gnu/dist/binutils/bfd/elf32-sh.c  Sat Dec 31 16:23:59 2005 +0000
@@ -4887,7 +4887,8 @@
                      && ((r_type == R_SH_DIR32
                           && (h->elf_link_hash_flags
                               & ELF_LINK_FORCED_LOCAL) == 0)
-                         || r_type == R_SH_REL32)
+                         || (r_type == R_SH_REL32
+                             && !SYMBOL_CALLS_LOCAL (info, h)))
                      && ((input_section->flags & SEC_ALLOC) != 0
                          /* DWARF will emit R_SH_DIR32 relocations in its
                             sections against symbols defined externally



Home | Main Index | Thread Index | Old Index