aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-04-06 06:44:45 +0000
committerAlan Modra <amodra@gmail.com>2013-04-06 06:44:45 +0000
commit198f1157c95708c10f213c3b5146a25d542b9775 (patch)
tree88b9e671c6b052ed5928890bcf4e26a959df2d79
parent524d4a957a98e63e3ac08f9d2f6d450daaf75af0 (diff)
downloadgdb-198f1157c95708c10f213c3b5146a25d542b9775.zip
gdb-198f1157c95708c10f213c3b5146a25d542b9775.tar.gz
gdb-198f1157c95708c10f213c3b5146a25d542b9775.tar.bz2
* elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
* elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count): Likewise.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-ppc.c2
-rw-r--r--bfd/elf64-ppc.c4
3 files changed, 8 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 806aa48..e32a80c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index f356c95..d6aae81 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -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
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index a4d483a..e14bfb0 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -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