From dbff29bd61c0294a1ca6aef66f2ec78cc451ad4b Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Thu, 29 Mar 2012 10:27:48 +0200 Subject: [PATCH] elf2flt: provide symbols around .init and .fini sections --- elf2flt/elf2flt.ld.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elf2flt/elf2flt.ld.in b/elf2flt/elf2flt.ld.in index c7e01a6f97..4d65427908 100644 --- a/elf2flt/elf2flt.ld.in +++ b/elf2flt/elf2flt.ld.in @@ -24,8 +24,12 @@ SECTIONS { *(.glue_7t) *(.glue_7) *(.jcr) + @SYMBOL_PREFIX@__init_section = . ; KEEP (*(.init)) + @SYMBOL_PREFIX@__init_section_end = . ; + @SYMBOL_PREFIX@__fini_section = . ; KEEP (*(.fini)) + @SYMBOL_PREFIX@__fini_section_end = . ; W_RODAT *(.rodata) W_RODAT *(.rodata1)