aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-01-12 04:09:43 +0000
committerAlan Modra <amodra@gmail.com>2009-01-12 04:09:43 +0000
commit37107878d339e17ccaae961b7ac24d982e9d56a9 (patch)
treecfa675e0e20c0d42984d50968f0373e1c64f5db1 /bfd/elf32-spu.c
parent31b060a20f9c8b39d8b16c3c6e44b20d17d60c27 (diff)
downloadgdb-37107878d339e17ccaae961b7ac24d982e9d56a9.zip
gdb-37107878d339e17ccaae961b7ac24d982e9d56a9.tar.gz
gdb-37107878d339e17ccaae961b7ac24d982e9d56a9.tar.bz2
* elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r--bfd/elf32-spu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index 1592c3b..2d2f258 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 "