From d8c7dc735f5d8ee635b8909ab14cedfa145bdb95 Mon Sep 17 00:00:00 2001 From: Tomer Levi Date: Thu, 16 Sep 2004 16:27:00 +0000 Subject: [PATCH] Add KEEP for certain section's *personality* --- ld/ChangeLog | 6 ++++++ ld/scripttempl/elf32crx.sc | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 5114aa7988..4ebf3151f5 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2004-09-16 Tomer Levi + + * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*. + (.fini): Likewise. + (.jcr): Likewise. + 2004-09-16 Alan Modra * emultempl/armelf_oabi.em (before_allocation): Add extra zero param diff --git a/ld/scripttempl/elf32crx.sc b/ld/scripttempl/elf32crx.sc index 4a893a006f..67488ae5f7 100644 --- a/ld/scripttempl/elf32crx.sc +++ b/ld/scripttempl/elf32crx.sc @@ -47,20 +47,20 @@ SECTIONS .init : { __INIT_START = .; - *(.init) + KEEP (*(.init)) __INIT_END = .; } > rom .fini : { __FINI_START = .; - *(.fini) + KEEP (*(.fini)) __FINI_END = .; } > rom .jcr : { - *(.jcr) + KEEP (*(.jcr)) } > rom .text : -- 2.11.0