File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 11name : CI
22env :
3- BINUTILS_VERSION : 2.36.1
3+ BINUTILS_VERSION : 2.37
44
55on :
66 push :
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ TRUE_PATH=$(readlink "$0" || echo "$0")
44MY_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
55BUILD_DIR=" ${MY_DIR} /build"
66ARTIFACTS_DIR=" ${MY_DIR} /artifacts"
7+ PATCHES_DIR=" ${MY_DIR} /patches"
78VERSION_INFO_FILE=" ${ARTIFACTS_DIR} /version.txt"
89CACHE_DIR=" ${HOME} /android-archives"
910OS=$( uname -s)
@@ -16,6 +17,7 @@ MACOS_TARGET="10.9"
1617
1718VERSION=" ${1} "
1819BINUTILS_DIR_NAME=" binutils-${VERSION} "
20+ BINUTILS_PATCH_NAME=" binutils-${VERSION} .diff"
1921
2022function die()
2123{
@@ -165,6 +167,12 @@ function build()
165167
166168 tar xf " ${TARBALL_DEST} "
167169
170+ local source_dir=" ${BUILD_DIR} /${BINUTILS_DIR_NAME} "
171+ local binutils_patch=" ${PATCHES_DIR} /${BINUTILS_PATCH_NAME} "
172+ if [ -f " ${binutils_patch} " ]; then
173+ (cd " ${source_dir} " ; patch -p1 < " ${binutils_patch} " )
174+ fi
175+
168176 local configure_host
169177
170178 case " ${host} " in
@@ -179,7 +187,6 @@ function build()
179187 install -d -m 755 " ${build_tree} "
180188
181189 local cflags=" -O2 -m64 $( detect_mac_arch_flags) "
182- local source_dir=" ${BUILD_DIR} /${BINUTILS_DIR_NAME} "
183190 local enable_gold
184191 local other_flags
185192
Original file line number Diff line number Diff line change 1+ diff -U3 -Narp binutils-2.37.orig/libiberty/rust-demangle.c binutils-2.37/libiberty/rust-demangle.c
2+ --- binutils-2.37.orig/libiberty/rust-demangle.c 2021-07-15 16:19:46.000000000 +0200
3+ +++ binutils-2.37/libiberty/rust-demangle.c 2021-07-19 09:50:29.003790488 +0200
4+ @@ -75,10 +75,10 @@ struct rust_demangler
5+ int version;
6+
7+ /* Recursion depth. */
8+ - uint recursion;
9+ + unsigned int recursion;
10+ /* Maximum number of times demangle_path may be called recursively. */
11+ #define RUST_MAX_RECURSION_COUNT 1024
12+ - #define RUST_NO_RECURSION_LIMIT ((uint) -1)
13+ + #define RUST_NO_RECURSION_LIMIT ((unsigned int) -1)
14+
15+ uint64_t bound_lifetime_depth;
16+ };
You can’t perform that action at this time.
0 commit comments