From 542085894058867e124f753b5ca576d47323a0bb Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 12 Jan 2009 04:09:43 +0000 Subject: [PATCH] * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. --- bfd/ChangeLog | 5 +++++ bfd/elf32-spu.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 83d6a20f4f..e45d9124ed 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,9 @@ 2009-01-12 Alan Modra + * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. + +2009-01-12 Alan Modra + * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2, num_lines_log2. (struct got_entry): Add br_addr. @@ -36,6 +40,7 @@ into addresses. (spu_elf_output_symbol_hook): Support soft-icache. (spu_elf_modify_program_headers: Likewise. + * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename num_regions to num_lines. Add line_size and max_branch. (enum _ovly_flavour): Add ovly_soft_icache. diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 1592c3bbc4..2d2f2583d4 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -4372,7 +4372,7 @@ spu_elf_auto_overlay (struct bfd_link_info *info) unsigned int indx = ovlynum - 1; unsigned int vma, lma; - vma = (indx & (htab->num_lines_log2 - 1)) << htab->line_size_log2; + vma = (indx & (htab->params->num_lines - 1)) << htab->line_size_log2; lma = indx << htab->line_size_log2; if (fprintf (script, " .ovly%u ABSOLUTE (ADDR (.ovl.init)) + %u " -- 2.11.0