p0ulp3 wrote:
So I have replaced each call of __DI() and __EI() by asm("di") and asm("ei") and the program is linked now but if anyone has an idea to solve this problem, let me know.
Why are you expecting calls to __DI() to generate a "di" instruction? Maybe that is a GHS specific feature that GCC doesn't implement? If so, then add a macro that is defined only when __GNUC__ is defined that expands __DI() to asm("di") for gcc.
Jim