Hi Larry,

On 10/04/2012 11:16 AM, Larry Baker wrote:
On 3 Oct 2012, at 3:06 PM, Larry Baker wrote:

In the mean time, I'll try using _end instead of __stack_start for the stack 
limit symbol.

gcc -fstack-limit-symbol=_end works.

I don't know the ld scripting language.  I will try to figure out how to define 
__start_stack to have the same value as, for example, .bss _end.

Here's a patch that corrects the definition of __stack_start in elf2flt.ld.in:

--- elf2flt-orig/elf2flt.ld.in
+++ elf2flt/elf2flt.ld.in
@@ -172,3 +172,3 @@
                @SYMBOL_PREFIX@_stack_start = .;
-       }
+       } > flatmem

Yep, that would be it.


With the patch, gcc -fstack-limit-symbol=__stack_start works.  Please have the 
people that maintain elf2flt take a look at it.

That would be me. I have pushed that fix into the CVS.
Thanks.

Regards
Greg


--
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     g...@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close,                            FAX:         +61 7 3891 3630
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to