aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-01-12 14:13:03 +0000
committerAlan Modra <amodra@gmail.com>2009-01-12 14:13:03 +0000
commit460e679b1285e11e1c05093a6447d40960dffa3b (patch)
treed42dacd484709ca890f5a336b948a4009008453b /bfd/elf32-spu.c
parent22f4bbf59149bfc58442119c67b12ad904f11693 (diff)
downloadgdb-460e679b1285e11e1c05093a6447d40960dffa3b.zip
gdb-460e679b1285e11e1c05093a6447d40960dffa3b.tar.gz
gdb-460e679b1285e11e1c05093a6447d40960dffa3b.tar.bz2
* elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r--bfd/elf32-spu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index e94c70b..318c5b4 100644
--- a/bfd/elf32-spu.c
+++ b/bfd/elf32-spu.c
@@ -1951,8 +1951,8 @@ spu_elf_build_stubs (struct bfd_link_info *info)
h = define_ovtab_symbol (htab, "__icache_base");
if (h == NULL)
return FALSE;
- h->root.u.def.value = 0;
- h->root.u.def.section = htab->ovl_sec[0];
+ h->root.u.def.value = htab->ovl_sec[0]->vma;
+ h->root.u.def.section = bfd_abs_section_ptr;
h->size = htab->num_buf << htab->line_size_log2;
if (htab->init != NULL && htab->init->size != 0)