I finally understood that the strange stuff was dwarf2 frame unwind information. I got rid of it by putting the followin line un GCC config file : #define DWARF2_UNWIND_INFO 0 Now it works fine with SjLj exceptions.