* elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.

This commit is contained in:
Alan Modra 2009-01-12 04:09:43 +00:00
parent 31b060a20f
commit 37107878d3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-01-12 Alan Modra <amodra@bigpond.net.au>
* elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
2009-01-12 Alan Modra <amodra@bigpond.net.au>
* elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
@ -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.

View File

@ -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 "