OSDN Git Service

From: Larry Baker <baker@usgs.gov> master
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 c7e01a6..5353413 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) }