powerpc gen405 linkcmds bug
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Thu Oct 14 18:18:32 UTC 2004
Smith, Gene wrote:
> It appears that c/src/lib/libbsp/powerpc/gen405/startup/linkcmds contain
> a possible error at line 148.
> Variable _end is defined at line 141 as the end of .bss (which is also
> the start of heap. But a few line latter at line 148 it is redefined (to
> the end of stack).
> The problem occurs in start/bspstart.c in bsp_pretasking_hook li 135
> where heap_size is determined based on _end and _heap_end. It comes out
> negative (or very large) since _end (heap_start) is now bigger than
> heap_end. Eventually memset is called which never returns or takes a
> real long time to return (stuck in loop at memset.c li 84).
> Remove li 148 from gen405's linkcmds so _end is not redefined.
> This is from the standard rtems-4.6.1 code base.
Gene... could you post either a diff or the entire file in question?
I was just about to start a final build sweep on 4.6.2 and will
make this change.
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users