From 74681fc450b5239513653cd758364b9c1f755bad Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 6 Jun 2009 06:36:52 +0000 Subject: [PATCH] * elf32-spu.c (spu_elf_relocate_section): Match overlay number when looking for soft-icache stubs. --- bfd/ChangeLog | 5 +++++ bfd/elf32-spu.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 34bb1f868f9..14b4df5ef6b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-06-06 Alan Modra + + * elf32-spu.c (spu_elf_relocate_section): Match overlay number + when looking for soft-icache stubs. + 2009-06-05 Tristan Gingold * mach-o.h: Update copyright year. diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index db23807d8c9..af7afdbc675 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -4848,9 +4848,10 @@ spu_elf_relocate_section (bfd *output_bfd, for (g = *head; g != NULL; g = g->next) if (htab->params->ovly_flavour == ovly_soft_icache - ? g->br_addr == (rel->r_offset - + input_section->output_offset - + input_section->output_section->vma) + ? (g->ovl == ovl + && g->br_addr == (rel->r_offset + + input_section->output_offset + + input_section->output_section->vma)) : g->addend == addend && (g->ovl == ovl || g->ovl == 0)) break; if (g == NULL) -- 2.30.2