On Tue 30 Jun 2009 23:54, Haitao Zhang pondered:
> Hi,
> 
> in mmu less system, stack overflow is extremely danger for userland 
application,
> so i just try to take advantage from using GCC stack check options,
> BTW: our system is running on a ARM7TDMI, mmuless platform,
> and we use GCC 4.3.3, also build userland to use ARM EABI,
> 
> Here are my questions:
> 1. in old GCC 3.x series, there is a -mapcs-stack-check,
> but once GCC and ARM ABI upgraded to use AAPCS,
> seems there is no such option like -maapcs-stack-check.
> 
> 2. tried explicit compile application with -fstack-limit-register=R10,
> but seems no binary change with or without this option.
> 
> 3. anybody tried -fstack-check option on ARM or other mmuless system?
> will this option help in runtime stack check?

We use stack checking all the time on blackfin (nommu).

fstack-limit-symbol=_stack_start

check the man page for gcc.

This has limited use (doesn't work) on multi-threaded applications, so we 
created a blackfin specific flag: -mstack-check-l1 , which needs a little 
kernel support.

-Robin

_______________________________________________
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