]> git.wh0rd.org Git - elf2flt.git/commitdiff
From: Larry Baker <baker@usgs.gov>
authorGreg Ungerer <gerg@snapgear.com>
Thu, 4 Oct 2012 02:32:38 +0000 (02:32 +0000)
committerGreg Ungerer <gerg@snapgear.com>
Thu, 4 Oct 2012 02:32:38 +0000 (02:32 +0000)
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 <gerg@uclinux.org>
elf2flt.ld.in

index c7e01a6f978d427816c86d719baae15a1bdce28a..53534137ec55e08431459c083f241b76d7d44eed 100644 (file)
@@ -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) }