From 5ad24f819ebe8c1f84d2beb61089663bb4619468 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 27 Nov 2008 12:20:48 +0000 Subject: [PATCH] When compiled with CVS binutils, busybox fails to execute properly. That's because it's using --gc-sections, and the elf2flt linker script allows the linker to remove parts of the .init and .fini sections. This patch fixes it. Bernd Schmidt --- elf2flt.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elf2flt.ld b/elf2flt.ld index 19eab7c..c319e71 100644 --- a/elf2flt.ld +++ b/elf2flt.ld @@ -19,8 +19,8 @@ SECTIONS { *(.glue_7t) *(.glue_7) *(.jcr) - *(.init) - *(.fini) + KEEP (*(.init)) + KEEP (*(.fini)) W_RODAT *(.rodata) W_RODAT *(.rodata1) -- 2.11.0