Fix? toolchain

This commit is contained in:
Drew Galbraith 2023-06-13 23:32:01 -07:00
parent 2de2f1d364
commit 43a9b93192
2 changed files with 14 additions and 1 deletions

View File

@ -23,7 +23,7 @@ NEWLIB_NAME="newlib-$NEWLIB_VERSION"
NEWLIB_PKG="${NEWLIB_NAME}.tar.gz" NEWLIB_PKG="${NEWLIB_NAME}.tar.gz"
NEWLIB_BASE_URL="ftp://sourceware.org/pub/newlib" NEWLIB_BASE_URL="ftp://sourceware.org/pub/newlib"
GCC_VERSION="13.1.0" GCC_VERSION="12.3.0"
GCC_NAME="gcc-$GCC_VERSION" GCC_NAME="gcc-$GCC_VERSION"
GCC_PKG="${GCC_NAME}.tar.xz" GCC_PKG="${GCC_NAME}.tar.xz"
GCC_BASE_URL="https://ftp.gnu.org/gnu/gcc" GCC_BASE_URL="https://ftp.gnu.org/gnu/gcc"
@ -37,6 +37,9 @@ pushd "$TOOLCHAIN/srcs"
if [ ! -d "$BINUTILS_NAME" ]; then if [ ! -d "$BINUTILS_NAME" ]; then
tar -xJf ${BINUTILS_PKG} tar -xJf ${BINUTILS_PKG}
pushd $BINUTILS_NAME
patch -p1 <$TOOLCHAIN/patches/binutils/00-first.patch
popd
fi fi
if [ ! -e $NEWLIB_PKG ]; then if [ ! -e $NEWLIB_PKG ]; then
@ -53,6 +56,9 @@ pushd "$TOOLCHAIN/srcs"
if [ ! -d "$GCC_NAME" ]; then if [ ! -d "$GCC_NAME" ]; then
tar -xJf $GCC_PKG tar -xJf $GCC_PKG
pushd $GCC_NAME
patch -p1 <$TOOLCHAIN/patches/gcc/00-first.patch
popd
fi fi

View File

@ -115,3 +115,10 @@ index de04a44b..b1f3f26b 100644
x86_64-*-rdos*) targ_emul=elf64rdos x86_64-*-rdos*) targ_emul=elf64rdos
;; ;;
x86_64-*-cloudabi*) targ_emul=elf_x86_64_cloudabi x86_64-*-cloudabi*) targ_emul=elf_x86_64_cloudabi
diff --git a/ld/emulparams/elf_x86_64_acadia.sh b/ld/emulparams/elf_x86_64_acadia.sh
new file mode 100644
index 00000000..59e7df71
--- /dev/null
+++ b/ld/emulparams/elf_x86_64_acadia.sh
@@ -0,0 +1 @@
+source_sh ${srcdir}/emulparams/elf_x86_64.sh