diff --git a/dkarm-eabi/patches/gcc-10.1.0.patch b/dkarm-eabi/patches/gcc-10.1.0.patch index a814931..86739a0 100644 --- a/dkarm-eabi/patches/gcc-10.1.0.patch +++ b/dkarm-eabi/patches/gcc-10.1.0.patch @@ -236,3 +236,16 @@ index dddddc7c444..c2502597953 100644 # the option is safe. -LIB2_DIVMOD_EXCEPTION_FLAGS := -fexceptions +LIB2_DIVMOD_EXCEPTION_FLAGS := -fno-exceptions +diff --git a/libgcc/crtstuff.c b/libgcc/crtstuff.c +index 3f769a1c660..e005d8304b7 100644 +--- a/libgcc/crtstuff.c ++++ b/libgcc/crtstuff.c +@@ -325,7 +325,7 @@ register_tm_clones (void) + + #ifdef OBJECT_FORMAT_ELF + +-#if DEFAULT_USE_CXA_ATEXIT ++#if 1 /* DEFAULT_USE_CXA_ATEXIT */ + /* Declare the __dso_handle variable. It should have a unique value + in every shared-object; in a main program its value is zero. The + object should in any case be protected. This means the instance diff --git a/dkarm-eabi/scripts/build-gcc.sh b/dkarm-eabi/scripts/build-gcc.sh index c8f6319..5cf780a 100755 --- a/dkarm-eabi/scripts/build-gcc.sh +++ b/dkarm-eabi/scripts/build-gcc.sh @@ -64,7 +64,9 @@ then --prefix=$prefix \ --enable-lto\ --with-system-zlib \ - --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 54" \ + --disable-tm-clone-registry \ + --disable-__cxa_atexit \ + --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitARM release 55" \ $CROSS_PARAMS \ $CROSS_GCC_PARAMS \ || { echo "Error configuring gcc"; exit 1; }