diff --git a/cpu/cortexm_common/Makefile b/cpu/cortexm_common/Makefile index cbf1ed7f2e..e09377cd1e 100644 --- a/cpu/cortexm_common/Makefile +++ b/cpu/cortexm_common/Makefile @@ -1,6 +1,3 @@ -# see https://github.com/RIOT-OS/RIOT/issues/5775. -SRC_NOLTO += vectors_cortexm.c - DIRS = periph include $(RIOTBASE)/Makefile.base diff --git a/cpu/cortexm_common/thread_arch.c b/cpu/cortexm_common/thread_arch.c index 40ea9eb5e7..b7ebf7fe21 100644 --- a/cpu/cortexm_common/thread_arch.c +++ b/cpu/cortexm_common/thread_arch.c @@ -372,6 +372,8 @@ void __attribute__((naked)) __attribute__((used)) isr_pendsv(void) { * causes end of exception*/ #endif /* {r0-r3,r12,LR,PC,xPSR,s0-s15,FPSCR} are restored automatically on exception return */ + ".ltorg \n" /* literal pool needed to access + * sched_active_thread */ ); }