From e5837d993420c6c9653d8a4cae21b5a90899f4b4 Mon Sep 17 00:00:00 2001 From: uweigand Date: Thu, 14 May 2009 17:56:56 +0000 Subject: [PATCH] * elf32-spu.c (mark_overlay_section): Move .init and .fini sections into the software icache. --- bfd/ChangeLog | 5 +++++ bfd/elf32-spu.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 603216b867..64119e44a6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 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 i-cache stubs. diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 81ef78b0c7..5c63d15812 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; -- 2.11.0