gcc, arm, inline assembly, BX produce unexpected results trying to jump over a goto section

I am using Cortex M0+; I am trying to preserve a piece of code inside the regular code flow, don’t ask me why 🙂 Basically later on, I’d like to jump to MYCODE. This is the code bool x = false; // defined somewhere globally if (x) goto MYCODE; // prevents removal of MYCODE //goto… Read More gcc, arm, inline assembly, BX produce unexpected results trying to jump over a goto section