* elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp
authorAlan Modra <amodra@gmail.com>
Sat, 7 Jun 2008 12:02:47 +0000 (12:02 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 7 Jun 2008 12:02:47 +0000 (12:02 +0000)
to stack calculation.

bfd/ChangeLog
bfd/elf32-spu.c

index ddca514fe45111d79c36239804eafb48bf5486b2..d096a2bface5e09cd4685d6c0fac9a5daf7efc7c 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-07  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp
+       to stack calculation.
+
 2008-06-06  Paul Brook  <paul@codesourcery.com>
 
        bfd/
index e11e1d7663f0412d11afba72b5d18ee994366e1c..eac2e85a12e34c8d6f9b15f2aa975e7eb8a0b32d 100644 (file)
@@ -3574,7 +3574,7 @@ spu_elf_auto_overlay (struct bfd_link_info *info,
       sum_stack_param.overall_stack = 0;
       if (!for_each_node (sum_stack, info, &sum_stack_param, TRUE))
        goto err_exit;
-      htab->reserved = sum_stack_param.overall_stack;
+      htab->reserved = sum_stack_param.overall_stack + 2000;
     }
   fixed_size += htab->reserved;
   fixed_size += htab->non_ovly_stub * OVL_STUB_SIZE;