[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
--wrap ld functionality does not work with Init RTEMS function
- Date: Tue, 8 Apr 2008 12:24:26 -0500
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: --wrap ld functionality does not work with Init RTEMS function
Aitor.Viana.Sanchez at esa.int wrote:
>
> Hi all,
>
> does anybody knows why when trying to wrap the Init RTEMS function
> with the ld --wrap functionality everything compiles well but
> eventually the wrapper function is not executed?
>
> Maybe I am missing something, but is taking me a while to discover why.
>
Init is a task/thread and threads will not return to the wrapper.
They are entered but exit via rtems_task_delete or pthread_exit.
I would expect the wrapper to be entered, then Init but no return
from Init.
> Regards,
>
> Aitor
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985