From: David McCullough Date: Thu, 27 Nov 2008 12:20:48 +0000 (+0000) Subject: When compiled with CVS binutils, busybox fails to execute properly. X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5ad24f819ebe8c1f84d2beb61089663bb4619468;p=elf2flt.git 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 --- 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)