eCos Freescale Wiki
eCos Freescale HAL Work In Progress
Status: Pre-Alpha
Brought to you by:
proclivis
There are a couple of prebuilt toolchains in the Toolchain directory of this site. They are both for 64 bit linux. One is for RHEL 6.5 and the other for Ubuntu 14 LTS.
Andrey provided a GCC 4.8 solution that I tested and it works for iMX6.
To use it, you need to apply a patch because the compiler was not built for eCos. The patch modifies the iMX6 hal by adding the code below to hal_misc.c. The patch can be found in the files area under toolchain. Look for gcc 4-8 iMX6.patch.
void __cxa_atexit(void (*arg1)(void*), void* arg2, void* arg3) {}
void* __dso_handle = (void*) &__dso_handle;
void* _impure_ptr = (void*) &_impure_ptr;