aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-02-23 05:50:28 +0000
committerAlan Modra <amodra@gmail.com>2008-02-23 05:50:28 +0000
commit1cd81501f406fd8c488574d3130c61ab4c492315 (patch)
tree9a4cdf646eec0e5902e74937747ec1b6dbab068b
parent0eb4a168d474b103ece58f499e34ae7e99962f2a (diff)
downloadgdb-1cd81501f406fd8c488574d3130c61ab4c492315.zip
gdb-1cd81501f406fd8c488574d3130c61ab4c492315.tar.gz
gdb-1cd81501f406fd8c488574d3130c61ab4c492315.tar.bz2
* elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-ppc.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b47d133..9a182a4 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
2008-02-23 Alan Modra <amodra@bigpond.net.au>
+ * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
+
+2008-02-23 Alan Modra <amodra@bigpond.net.au>
+
* elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
pointer_equality_needed.
(ppc_elf_check_relocs): Split out non-branch relocs from others
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index a859adf..147efe2 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -3464,6 +3464,9 @@ ppc_elf_check_relocs (bfd *abfd,
a function defined in a dynamic object. */
if (!update_plt_info (abfd, h, NULL, 0))
return FALSE;
+
+ /* We may need a copy reloc too. */
+ h->non_got_ref = 1;
}
dodyn: