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/elf32-spu.c | |
parent | Fix linking with --enable-targets=all: (diff) | |
download | binutils-gdb-37107878d339e17ccaae961b7ac24d982e9d56a9.tar.gz binutils-gdb-37107878d339e17ccaae961b7ac24d982e9d56a9.tar.bz2 binutils-gdb-37107878d339e17ccaae961b7ac24d982e9d56a9.zip |
* elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r-- | bfd/elf32-spu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 1592c3bbc48..2d2f2583d4e 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 " |