From 1fa32646fbadd3b802242ca993226fc35741a035 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 5114aa79888..4ebf3151f56 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 4a893a006fc..67488ae5f7b 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.30.2