aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-spu.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-05-14 14:39:04 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-05-14 14:39:04 +0000
commitc1ea05bbe875208b4c493220f7013bc2f491207e (patch)
tree0ef483e5c11327efe2d210f367674f267d75e19f /bfd/elf32-spu.c
parent9bb9e8ade770027f5cced2856574e2d317b15254 (diff)
downloadgdb-c1ea05bbe875208b4c493220f7013bc2f491207e.zip
gdb-c1ea05bbe875208b4c493220f7013bc2f491207e.tar.gz
gdb-c1ea05bbe875208b4c493220f7013bc2f491207e.tar.bz2
* elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode,
generate only a 16-byte .toe section. (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r--bfd/elf32-spu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index 06091f3..7cdcb03 100644
--- a/bfd/elf32-spu.c
+++ b/bfd/elf32-spu.c
@@ -1748,7 +1748,7 @@ spu_elf_size_stubs (struct bfd_link_info *info)
if (htab->toe == NULL
|| !bfd_set_section_alignment (ibfd, htab->toe, 4))
return 0;
- htab->toe->size = htab->params->ovly_flavour == ovly_soft_icache ? 256 : 16;
+ htab->toe->size = 16;
return 2;
}
@@ -2088,7 +2088,7 @@ spu_elf_build_stubs (struct bfd_link_info *info)
return FALSE;
h->root.u.def.section = htab->toe;
h->root.u.def.value = 0;
- h->size = htab->params->ovly_flavour == ovly_soft_icache ? 16 * 16 : 16;
+ h->size = 16;
return TRUE;
}
@@ -4272,8 +4272,8 @@ spu_elf_auto_overlay (struct bfd_link_info *info)
fixed_size += htab->params->max_branch << (htab->num_lines_log2 + 4);
/* c) Indirect branch descriptors, 8 quadwords. */
fixed_size += 8 * 16;
- /* d) Pointers to __ea backing store, 16 quadwords. */
- fixed_size += 16 * 16;
+ /* d) Pointer to __ea backing store (toe), 1 quadword. */
+ fixed_size += 16;
}
else
{