* elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
authorAlan Modra <amodra@gmail.com>
Sat, 6 Apr 2013 06:44:45 +0000 (06:44 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 6 Apr 2013 06:44:45 +0000 (06:44 +0000)
* elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count): Likewise.

bfd/ChangeLog
bfd/elf32-ppc.c
bfd/elf64-ppc.c

index 806aa48ee0112647619a800dcc3e7c3416322ef0..e32a80c9af586ab7c6a763b8facd83354895f757 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-06  Alan Modra  <amodra@gmail.com>
+
+       * elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
+       * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count): Likewise.
+
 2013-04-05  Nick Clifton  <nickc@redhat.com>
 
        * elflink.c (elf_link_add_object_symbols): Revert accidental commit.
index f356c959fd6bbfe67850734579ff096330e3cb71..d6aae81d8e3e402d95cf8311d8220525caf63544 100644 (file)
@@ -4424,7 +4424,7 @@ ppc_elf_check_relocs (bfd *abfd,
          if ((info->shared
               && (must_be_dyn_reloc (info, r_type)
                   || (h != NULL
-                      && (! info->symbolic
+                      && (!SYMBOLIC_BIND (info, h)
                           || h->root.type == bfd_link_hash_defweak
                           || !h->def_regular))))
              || (ELIMINATE_COPY_RELOCS
index a4d483a9fa588f8320f5cbc9c158aaeef799d016..e14bfb081dd92a4e076506330dff942f30011954 100644 (file)
@@ -5456,7 +5456,7 @@ ppc64_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
          if ((info->shared
               && (must_be_dyn_reloc (info, r_type)
                   || (h != NULL
-                      && (! info->symbolic
+                      && (!SYMBOLIC_BIND (info, h)
                           || h->root.type == bfd_link_hash_defweak
                           || !h->def_regular))))
              || (ELIMINATE_COPY_RELOCS
@@ -7064,7 +7064,7 @@ dec_dynrel_count (bfd_vma r_info,
   if ((info->shared
        && (must_be_dyn_reloc (info, r_type)
           || (h != NULL
-              && (!info->symbolic
+              && (!SYMBOLIC_BIND (info, h)
                   || h->root.type == bfd_link_hash_defweak
                   || !h->def_regular))))
       || (ELIMINATE_COPY_RELOCS