* elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.

This commit is contained in:
Alan Modra
2009-01-12 14:13:03 +00:00
parent 22f4bbf591
commit 460e679b12
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-01-13 Alan Modra <amodra@bigpond.net.au>
* elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
2009-01-13 Alan Modra <amodra@bigpond.net.au> 2009-01-13 Alan Modra <amodra@bigpond.net.au>
* elf32-spu.c (remove_cycles): Always set call->max_depth. * elf32-spu.c (remove_cycles): Always set call->max_depth.

View File

@ -1951,8 +1951,8 @@ spu_elf_build_stubs (struct bfd_link_info *info)
h = define_ovtab_symbol (htab, "__icache_base"); h = define_ovtab_symbol (htab, "__icache_base");
if (h == NULL) if (h == NULL)
return FALSE; return FALSE;
h->root.u.def.value = 0; h->root.u.def.value = htab->ovl_sec[0]->vma;
h->root.u.def.section = htab->ovl_sec[0]; h->root.u.def.section = bfd_abs_section_ptr;
h->size = htab->num_buf << htab->line_size_log2; h->size = htab->num_buf << htab->line_size_log2;
if (htab->init != NULL && htab->init->size != 0) if (htab->init != NULL && htab->init->size != 0)