From 6a26771553268288ca1652dc051fa7165245ea25 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 7 Jun 2008 12:02:47 +0000 Subject: [PATCH] * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp to stack calculation. --- bfd/ChangeLog | 5 +++++ bfd/elf32-spu.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ddca514fe45..d096a2bface 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-06-07 Alan Modra + + * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp + to stack calculation. + 2008-06-06 Paul Brook bfd/ diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index e11e1d7663f..eac2e85a12e 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -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; -- 2.30.2