summaryrefslogtreecommitdiffstats
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
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 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 "
OpenPOWER on IntegriCloud