mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01:00
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:
parent
0b920cf9b9
commit
370eeb28e9
@ -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()
|
||||
{
|
||||
|
10
libraries/wutstdc++/wut_stdcpp_personality.s
Normal file
10
libraries/wutstdc++/wut_stdcpp_personality.s
Normal 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
|
Loading…
Reference in New Issue
Block a user