Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d09c4a7

Browse files
committed
adding patches to soft float arm32 too
1 parent 950badf commit d09c4a7

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

‎arm32-gcc10-soft-float/patch-fix-path-max-libasan.sh‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
#!/bin/bash
22

3+
die() {
4+
echo "Error: 1ドル"
5+
exit 1
6+
}
7+
8+
[ ! -f variables ] && die "'variables': No such file"
9+
10+
. variables
11+
312
line=66
4-
file=$(pwd)/gcc-*/libsanitizer/asan/asan_linux.cpp
13+
file=${WORK_DIR}/gcc-*/libsanitizer/asan/asan_linux.cpp
514
# file works because we only have one gcc extracted folder
615

716
sed -i -f - $file <<EOF
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
# This script reapplies an GCC header fix to the limits.h header so that the fixed header
3+
# recurse down to the real libc limits.h.
4+
#
5+
# This script is needed because the code, in the GCC code base, that applies this patch
6+
# checks for a already-installed libc installed limits.h header, but due to the order of
7+
# installation we needed an (cut-down) installation of GCC before we can build libc.
8+
9+
die() {
10+
echo "Error: 1ドル"
11+
exit 1
12+
}
13+
14+
[ ! -f variables ] && die "'variables': No such file"
15+
16+
. variables
17+
18+
[ -z "${TARGET_ARCH}" ] && die "TARGET_ARCH not defined."
19+
20+
echo "Applying limits.h header patch..."
21+
22+
LIBGCC_FILE=$(${TARGET_ARCH}-gcc -print-libgcc-file-name)
23+
LIBGCC_PATH=$(dirname ${LIBGCC_FILE})
24+
25+
LIMITX_HEADER=${LIBGCC_PATH}/plugin/include/limitx.h
26+
LIMITY_HEADER=${LIBGCC_PATH}/plugin/include/limity.h
27+
GLIMIT_HEADER=${LIBGCC_PATH}/plugin/include/glimits.h
28+
29+
FIXED_LIMITS_HEADER=${LIBGCC_PATH}/include-fixed/limits.h
30+
31+
cat ${LIMITX_HEADER} ${GLIMIT_HEADER} ${LIMITY_HEADER} > ${FIXED_LIMITS_HEADER}
32+
33+
echo "Done."

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /