]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
authorAlan Modra <amodra@gmail.com>
Wed, 4 Feb 2009 02:42:57 +0000 (02:42 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 4 Feb 2009 02:42:57 +0000 (02:42 +0000)
Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.

bfd/ChangeLog
bfd/elf32-spu.c

index e028f1f7268e8f8c3722e9bccd30e057aaf48e95..de0f5960905a2daec7c043f790935623f3757bc1 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-04  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
+       Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
+
 2009-02-03  Sandip Matte  <sandip@rmicorp.com>
 
        * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
index 94de8fadf59bcd3c55da01ac239dabe53ea3fb3e..725eb5a5a00214f7e5aad9d93ed4012ea43a69f8 100644 (file)
@@ -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,