summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2006-03-15 13:52:58 +0000
committerAlan Modra <amodra@bigpond.net.au>2006-03-15 13:52:58 +0000
commitb5e6b0dc918efd2dfe56348776bfa3a6532edec1 (patch)
treefdfb82ec0b7b5512ed1b063d3be0f56f4ca94fd0
parent7e002560df83b7bd205feec5d38974d62779025b (diff)
downloadgdb-b5e6b0dc918efd2dfe56348776bfa3a6532edec1.tar.gz
* elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
checks from REL32.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-ppc.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index cc0093edb1e..ed9aa27f9bc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-16 Alan Modra <amodra@bigpond.net.au>
+
+ * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
+ checks from REL32.
+
2006-03-15 Ben Elliston <bje@au.ibm.com>
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index b3d8308fb07..7d1cb79e327 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -3335,7 +3335,9 @@ ppc_elf_check_relocs (bfd *abfd,
if (s == got2)
htab->plt_type = PLT_OLD;
}
- /* fall through */
+ if (h == NULL)
+ break;
+ goto dodyn;
case R_PPC_REL24:
case R_PPC_REL14: