aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-02-04 02:42:57 +0000
committerAlan Modra <amodra@gmail.com>2009-02-04 02:42:57 +0000
commit50e009621f6087907a916a576a33c031106f86fc (patch)
treea534f69b6f88ce45d4b5501aa71649adea5be3f2 /bfd/elf32-spu.c
parent644f599bfce00bb2b0e95d4c5bd4149b004843ea (diff)
downloadgdb-50e009621f6087907a916a576a33c031106f86fc.zip
gdb-50e009621f6087907a916a576a33c031106f86fc.tar.gz
gdb-50e009621f6087907a916a576a33c031106f86fc.tar.bz2
* elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r--bfd/elf32-spu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index 94de8fa..725eb5a 100644
--- a/bfd/elf32-spu.c
+++ b/bfd/elf32-spu.c
@@ -1886,7 +1886,7 @@ spu_elf_build_stubs (struct bfd_link_info *info)
p = htab->ovtab->contents;
if (htab->params->ovly_flavour == ovly_soft_icache)
{
-#define BI_HANDLER "__icache_ptr___icache_bi_handler0"
+#define BI_HANDLER "__icache_ptr_handler0"
char name[sizeof (BI_HANDLER)];
bfd_vma off, icache_base, linklist, bihand;
@@ -1955,6 +1955,12 @@ spu_elf_build_stubs (struct bfd_link_info *info)
h->root.u.def.section = bfd_abs_section_ptr;
h->size = htab->num_buf << htab->line_size_log2;
+ h = define_ovtab_symbol (htab, "__icache_neg_log2_linesize");
+ if (h == NULL)
+ return FALSE;
+ h->root.u.def.value = -htab->line_size_log2;
+ h->root.u.def.section = bfd_abs_section_ptr;
+
if (htab->init != NULL && htab->init->size != 0)
{
htab->init->contents = bfd_zalloc (htab->init->owner,