From: Alan Modra Date: Mon, 12 Jan 2009 14:13:03 +0000 (+0000) Subject: * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=460e679b1285e11e1c05093a6447d40960dffa3b;p=binutils-gdb.git * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8d20b8137d2..c6878ac0012 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2009-01-13 Alan Modra + + * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. + 2009-01-13 Alan Modra * elf32-spu.c (remove_cycles): Always set call->max_depth. diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index e94c70b9b5f..318c5b4deec 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)