From: Ulrich Weigand Date: Thu, 14 May 2009 17:56:56 +0000 (+0000) Subject: * elf32-spu.c (mark_overlay_section): Move .init and .fini X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=335bd8f20567e11b0ab3932b317a93d05363be4c;p=binutils-gdb.git * elf32-spu.c (mark_overlay_section): Move .init and .fini sections into the software icache. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 603216b8672..64119e44a6b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2009-05-14 Ulrich Weigand + + * elf32-spu.c (mark_overlay_section): Move .init and .fini + sections into the software icache. + 2009-05-14 Ulrich Weigand * elf32-spu.c (build_stub): Always build "compact" sofware diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 81ef78b0c72..5c63d158123 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -3398,7 +3398,9 @@ mark_overlay_section (struct function_info *fun, if (!fun->sec->linker_mark && (htab->params->ovly_flavour != ovly_soft_icache || htab->params->non_ia_text - || strncmp (fun->sec->name, ".text.ia.", 9) == 0)) + || strncmp (fun->sec->name, ".text.ia.", 9) == 0 + || strcmp (fun->sec->name, ".init") == 0 + || strcmp (fun->sec->name, ".fini") == 0)) { unsigned int size;