From: Greg Ungerer Date: Thu, 4 Oct 2012 02:32:38 +0000 (+0000) Subject: From: Larry Baker X-Git-Url: http://git.osdn.net/view?p=uclinux-h8%2Felf2flt.git;a=commitdiff_plain;h=21c6a41885ad544763ccd19883c1353f3b0b7a47 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 --- 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) }