------- Comment #8 from fredrik dot hederstierna at securitas-direct dot com 2010-08-09 07:55 ------- I think I found what was the problem, the flags
-mthumb -mcpu=arm966e-s -Os -falign-functions=4 Did not 32-bit-align my thumb->arm trampoline function. I dont know if -Os win over -falign-functions flag in this case. Anyway, my function ended up on a 16-bit aligned address and that caused an abort. /Fredrik -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45207