Build GCC/Binutils toolchain in tree. #1
|
@ -23,7 +23,7 @@ NEWLIB_NAME="newlib-$NEWLIB_VERSION"
|
|||
NEWLIB_PKG="${NEWLIB_NAME}.tar.gz"
|
||||
NEWLIB_BASE_URL="ftp://sourceware.org/pub/newlib"
|
||||
|
||||
GCC_VERSION="13.1.0"
|
||||
GCC_VERSION="12.3.0"
|
||||
GCC_NAME="gcc-$GCC_VERSION"
|
||||
GCC_PKG="${GCC_NAME}.tar.xz"
|
||||
GCC_BASE_URL="https://ftp.gnu.org/gnu/gcc"
|
||||
|
@ -37,6 +37,9 @@ pushd "$TOOLCHAIN/srcs"
|
|||
|
||||
if [ ! -d "$BINUTILS_NAME" ]; then
|
||||
tar -xJf ${BINUTILS_PKG}
|
||||
pushd $BINUTILS_NAME
|
||||
patch -p1 <$TOOLCHAIN/patches/binutils/00-first.patch
|
||||
popd
|
||||
fi
|
||||
|
||||
if [ ! -e $NEWLIB_PKG ]; then
|
||||
|
@ -53,6 +56,9 @@ pushd "$TOOLCHAIN/srcs"
|
|||
|
||||
if [ ! -d "$GCC_NAME" ]; then
|
||||
tar -xJf $GCC_PKG
|
||||
pushd $GCC_NAME
|
||||
patch -p1 <$TOOLCHAIN/patches/gcc/00-first.patch
|
||||
popd
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
@ -115,3 +115,10 @@ index de04a44b..b1f3f26b 100644
|
|||
x86_64-*-rdos*) targ_emul=elf64rdos
|
||||
;;
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue