diff options
author | Alan Modra <amodra@gmail.com> | 2009-01-12 04:09:43 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-01-12 04:09:43 +0000 |
commit | 37107878d339e17ccaae961b7ac24d982e9d56a9 (patch) | |
tree | cfa675e0e20c0d42984d50968f0373e1c64f5db1 /bfd | |
parent | 31b060a20f9c8b39d8b16c3c6e44b20d17d60c27 (diff) | |
download | ppe42-binutils-37107878d339e17ccaae961b7ac24d982e9d56a9.tar.gz ppe42-binutils-37107878d339e17ccaae961b7ac24d982e9d56a9.zip |
* elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-spu.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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, 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 " |