From 871668a423cb962eecff34bb3ba8f75b75e25d8d Mon Sep 17 00:00:00 2001 From: MastaG Date: Thu, 22 Aug 2024 10:22:32 +0200 Subject: [PATCH] Switch to -m4-single --- exports_gcc.txt | 6 +++++- firmware/isoldr/loader/Makefile.cfg | 2 +- firmware/isoldr/syscalls/Makefile | 2 +- include/exports_fix.h | 4 ++++ modules/mp3/libmp3/mpg123/Makefile.orig | 6 +++--- modules/mp3/libmp3/mpg123/doc/Makefile | 6 +++--- modules/mp3/libmp3/mpg123/libtool | 4 ++-- modules/mp3/libmp3/mpg123/src/Makefile | 6 +++--- modules/mp3/libmp3/mpg123/src/libmpg123/Makefile | 6 +++--- modules/mp3/libmp3/mpg123/src/output/Makefile | 6 +++--- modules/xvid/xvidcore/build/generic/platform.inc | 2 +- sdk/Makefile.loadable | 4 ++-- sdk/toolchain/environ.sh | 2 +- 13 files changed, 32 insertions(+), 24 deletions(-) diff --git a/exports_gcc.txt b/exports_gcc.txt index 54a84983..5e1ee950 100644 --- a/exports_gcc.txt +++ b/exports_gcc.txt @@ -2,6 +2,10 @@ include kos/exports.h include exports_fix.h #GCC +__fixdfdi +__fixunsdfdi +__floatundidf +__unorddf2 __floatdidf __divdf3 __ledf2 @@ -45,4 +49,4 @@ _Unwind_SetGR _Unwind_SetIP _Unwind_RaiseException _Unwind_GetTextRelBase -_Unwind_Resume_or_Rethrow \ No newline at end of file +_Unwind_Resume_or_Rethrow diff --git a/firmware/isoldr/loader/Makefile.cfg b/firmware/isoldr/loader/Makefile.cfg index ccab760f..696373db 100644 --- a/firmware/isoldr/loader/Makefile.cfg +++ b/firmware/isoldr/loader/Makefile.cfg @@ -39,7 +39,7 @@ TARGETLD = $(TARGETPREFIX)-ld TARGETAS = $(TARGETPREFIX)-as TARGETSIZE = $(TARGETPREFIX)-size TARGETLDFLAGS = -Wl,--gc-sections -Tshlelf.xc -nostartfiles -nostdlib -nodefaultlibs -TARGETCFLAGS = -ml -m4-single-only -ffunction-sections -fdata-sections -ffreestanding \ +TARGETCFLAGS = -ml -m4-single -ffunction-sections -fdata-sections -ffreestanding \ -fno-builtin -fno-strict-aliasing -fomit-frame-pointer \ -Wall -std=c17 -Wextra -Werror \ -DLOADER_ADDR=$(TARGET) \ diff --git a/firmware/isoldr/syscalls/Makefile b/firmware/isoldr/syscalls/Makefile index 787cc32e..e4aff963 100644 --- a/firmware/isoldr/syscalls/Makefile +++ b/firmware/isoldr/syscalls/Makefile @@ -16,7 +16,7 @@ TARGETLD = $(TARGETPREFIX)-ld TARGETAS = $(TARGETPREFIX)-as TARGETSIZE = $(TARGETPREFIX)-size TARGETLDFLAGS = -Wl,--gc-sections -Tshlelf.xc -nostartfiles -nostdlib -nodefaultlibs -TARGETCFLAGS = -ml -m4-single-only -ffunction-sections -fdata-sections -ffreestanding \ +TARGETCFLAGS = -ml -m4-single -ffunction-sections -fdata-sections -ffreestanding \ -fno-builtin -fno-strict-aliasing -fomit-frame-pointer \ -Wall -std=c17 -Wextra -Werror diff --git a/include/exports_fix.h b/include/exports_fix.h index 5ff0e9fa..632b440e 100644 --- a/include/exports_fix.h +++ b/include/exports_fix.h @@ -42,6 +42,10 @@ int net_ipv4_input(netif_t *src, const uint8 *pkt, size_t pktsize, const eth_hdr_t *eth); /* GCC exports */ +extern uint32 __fixdfdi; +extern uint32 __fixunsdfdi; +extern uint32 __floatundidf; +extern uint32 __unorddf2; extern uint32 __floatdidf; extern uint32 __divdf3; extern uint32 __ledf2; diff --git a/modules/mp3/libmp3/mpg123/Makefile.orig b/modules/mp3/libmp3/mpg123/Makefile.orig index 2d1e73ef..287a3c56 100644 --- a/modules/mp3/libmp3/mpg123/Makefile.orig +++ b/modules/mp3/libmp3/mpg123/Makefile.orig @@ -109,9 +109,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -158,7 +158,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/mp3/libmp3/mpg123/doc/Makefile b/modules/mp3/libmp3/mpg123/doc/Makefile index 290f32a6..17858fc5 100644 --- a/modules/mp3/libmp3/mpg123/doc/Makefile +++ b/modules/mp3/libmp3/mpg123/doc/Makefile @@ -68,9 +68,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -117,7 +117,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/mp3/libmp3/mpg123/libtool b/modules/mp3/libmp3/mpg123/libtool index cdf32516..c9d83fa6 100644 --- a/modules/mp3/libmp3/mpg123/libtool +++ b/modules/mp3/libmp3/mpg123/libtool @@ -85,7 +85,7 @@ AR_FLAGS="cru" LTCC="/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc" # LTCC compiler flags. -LTCFLAGS="-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing" +LTCFLAGS="-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing" # A language-specific compiler. CC="/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc" @@ -7358,7 +7358,7 @@ AR_FLAGS="cru" LTCC="/opt/toolchains/dc/sh-elf/bin/sh-elf-gcc" # LTCC compiler flags. -LTCFLAGS="-O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing" +LTCFLAGS="-O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing" # A language-specific compiler. CC="sh-elf-g++" diff --git a/modules/mp3/libmp3/mpg123/src/Makefile b/modules/mp3/libmp3/mpg123/src/Makefile index c9cbf06d..64749118 100644 --- a/modules/mp3/libmp3/mpg123/src/Makefile +++ b/modules/mp3/libmp3/mpg123/src/Makefile @@ -144,9 +144,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -193,7 +193,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/mp3/libmp3/mpg123/src/libmpg123/Makefile b/modules/mp3/libmp3/mpg123/src/libmpg123/Makefile index 1a1231c4..67bf1e73 100644 --- a/modules/mp3/libmp3/mpg123/src/libmpg123/Makefile +++ b/modules/mp3/libmp3/mpg123/src/libmpg123/Makefile @@ -114,9 +114,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -163,7 +163,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/mp3/libmp3/mpg123/src/output/Makefile b/modules/mp3/libmp3/mpg123/src/output/Makefile index 5126af6f..fac54b5a 100644 --- a/modules/mp3/libmp3/mpg123/src/output/Makefile +++ b/modules/mp3/libmp3/mpg123/src/output/Makefile @@ -368,9 +368,9 @@ AWK = gawk CC = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCAS = /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc CCASDEPMODE = depmode=gcc3 -CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CCASFLAGS = -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing CCDEPMODE = depmode=gcc3 -CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single-only -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing +CFLAGS = -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -O2 -fomit-frame-pointer -ml -m4-single -fno-crossjumping -I/usr/local/dc/kos/kos/../kos-ports/include -I/usr/local/dc/kos/kos/include -I/usr/local/dc/kos/kos/kernel/arch/dreamcast/include -I/usr/local/dc/kos/kos/addons/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -fno-strict-aliasing COREAUDIO_CFLAGS = COREAUDIO_LDFLAGS = COREAUDIO_LIBS = -framework AudioToolbox -framework AudioUnit -framework CoreServices @@ -417,7 +417,7 @@ INSTALL_STRIP_PROGRAM = $(install_sh) -c -s JACK_CFLAGS = JACK_LDFLAGS = JACK_LIBS = -LDFLAGS = -ml -m4-single-only -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast +LDFLAGS = -ml -m4-single -Wl,-Ttext=0x8c010000 -T/usr/local/dc/kos/kos/utils/ldscripts/shlelf.xc -nodefaultlibs -L/usr/local/dc/kos/kos/lib/dreamcast -L/usr/local/dc/kos/kos/addons/lib/dreamcast LFS_LOBJ = lfs_alias.lo LIBMPG123_VERSION = 32:0:32 LIBOBJS = diff --git a/modules/xvid/xvidcore/build/generic/platform.inc b/modules/xvid/xvidcore/build/generic/platform.inc index bcec352a..6442b73a 100644 --- a/modules/xvid/xvidcore/build/generic/platform.inc +++ b/modules/xvid/xvidcore/build/generic/platform.inc @@ -32,7 +32,7 @@ OBJECT_EXTENSION=o CC=$(KOS_CC) SPECIFIC_CFLAGS= ALTIVEC_CFLAGS= -CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single-only -ffunction-sections -fdata-sections -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include -I$(KOS_BASE)/addons/include -I$(KOS_BASE)/../kos-ports/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -I$(KOS_BASE)/ds/include +CFLAGS=-O2 -fomit-frame-pointer -ml -m4-single -ffunction-sections -fdata-sections -I$(KOS_BASE)/include -I$(KOS_BASE)/kernel/arch/dreamcast/include -I$(KOS_BASE)/addons/include -I$(KOS_BASE)/../kos-ports/include -D_arch_dreamcast -D_arch_sub_pristine -Wall -g -fno-builtin -I$(KOS_BASE)/ds/include # ============================================================================ # Assembler diff --git a/sdk/Makefile.loadable b/sdk/Makefile.loadable index 0bfa3b57..6637a38d 100644 --- a/sdk/Makefile.loadable +++ b/sdk/Makefile.loadable @@ -113,10 +113,10 @@ all: increment_build $(TARGET) # of zero so we can do tracebacks later), second one makes the real file. $(TARGET): $(OBJS) ifndef NO_LD_DEBUG - $(KOS_CC) -g -ml -m4-single-only -O2 -g -Wl,-Ttext=0x00000000 -e _start -nostartfiles -nodefaultlibs \ + $(KOS_CC) -g -ml -m4-single -O2 -g -Wl,-Ttext=0x00000000 -e _start -nostartfiles -nodefaultlibs \ -o dbg-$(TARGET) $(OBJS) $(KOS_LIB_PATHS) -Wl,--start-group $(LIBS) $(DBG_LIBS) $(DBG_GCC_LIB) -Wl,--end-group endif - $(KOS_CC) -g -ml -m4-single-only -O2 -Wl,-d -Wl,-r -Wl,-S -Wl,-x -nostartfiles -nodefaultlibs \ + $(KOS_CC) -g -ml -m4-single -O2 -Wl,-d -Wl,-r -Wl,-S -Wl,-x -nostartfiles -nodefaultlibs \ -o $(TARGET) -Wl,-T $(DS_SDK)/shlelf.xr $(OBJS) $(KOS_LIB_PATHS) -Wl,--start-group $(LIBS) $(GCC_LIB) -Wl,--end-group ifdef VER_MAJOR @echo "\033[42m Compiled: $(TARGET_NAME) v$(VER_MAJOR).$(VER_MINOR).$(VER_MICRO) build $(VER_BUILD) \033[0m" diff --git a/sdk/toolchain/environ.sh b/sdk/toolchain/environ.sh index 44f1f7f1..2ff4a58b 100644 --- a/sdk/toolchain/environ.sh +++ b/sdk/toolchain/environ.sh @@ -196,7 +196,7 @@ export KOS_CFLAGS="${KOS_CFLAGS} -fno-builtin" # NOTE: Altering this setting also requires your toolchain to have been built # with support for these modes, which is not the case by default! # -export KOS_SH4_PRECISION="-m4-single-only" +export KOS_SH4_PRECISION="-m4-single" # Use LRA (Local Register Allocator) Pass #