wutstdc++: Move __gxx_personality to dedicated Assembly file

I was getting issues with __volatile__ for unknown reason, so moving 
this to a dedicated file sidesteps the issue entirely and passes this 
straight to GAS.
This commit is contained in:
Ash Logan 2019-04-09 16:44:42 +10:00
parent 0b920cf9b9
commit 370eeb28e9
2 changed files with 10 additions and 11 deletions

View File

@ -1,16 +1,5 @@
#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()
{

View File

@ -0,0 +1,10 @@
.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