diff --git a/libraries/wutstdc++/wut_stdcpp.cpp b/libraries/wutstdc++/wut_stdcpp.cpp index f15f6df..530e950 100644 --- a/libraries/wutstdc++/wut_stdcpp.cpp +++ b/libraries/wutstdc++/wut_stdcpp.cpp @@ -1,5 +1,16 @@ #include "wut_gthread.h" +__asm__ __volatile__( + "\t.section\t.text.__wrap___gxx_personality_v0,\"ax\",@progbits\n" + "\t.align\t2\n" + "\t.globl\t__wrap___gxx_personality_v0\n" + "\t.type\t__wrap___gxx_personality_v0, @function\n" + "__wrap___gxx_personality_v0:\n" + "\t.cfi_startproc\n" + "\tb\t__real___gxx_personality_v0\n" + "\t.cfi_endproc" +); + extern "C" void __init_wut_stdcpp() { diff --git a/libraries/wutstdc++/wut_stdcpp_personality.s b/libraries/wutstdc++/wut_stdcpp_personality.s deleted file mode 100644 index 13b9e7f..0000000 --- a/libraries/wutstdc++/wut_stdcpp_personality.s +++ /dev/null @@ -1,10 +0,0 @@ -.section .text.__wrap___gxx_personality_v0,"ax",@progbits -.align 2 - -.globl __wrap___gxx_personality_v0 -.type __wrap___gxx_personality_v0, @function - -__wrap___gxx_personality_v0: - .cfi_startproc - b __real___gxx_personality_v0 - .cfi_endproc