From 21c6a41885ad544763ccd19883c1353f3b0b7a47 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Thu, 4 Oct 2012 02:32:38 +0000 Subject: [PATCH] From: Larry Baker The _stack_start symbol needs to be in the same flatmem memory region as text/data/bss, otherwise it will not end up with the correct address. Direct the section into the flatmem region. Signed-of-by: Greg Ungerer --- elf2flt.ld.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elf2flt.ld.in b/elf2flt.ld.in index c7e01a6..5353413 100644 --- a/elf2flt.ld.in +++ b/elf2flt.ld.in @@ -170,7 +170,7 @@ TOR: @SYMBOL_PREFIX@__DTOR_END__ = .; .stack : { . = ALIGN(0x4); @SYMBOL_PREFIX@_stack_start = .; - } + } > flatmem .junk 0 : { *(.rel*) *(.rela*) } /DISCARD/ : { *(.note.GNU-stack) } -- 2.11.0