File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,6 @@ apt install -y --no-install-recommends texinfo
46
46
# Get the latest fixed version
47
47
git clone --depth=1 --single-branch --branch newlib-4.5.0 https://sourceware.org/git/newlib-cygwin.git " ${SRC} "
48
48
49
- # Apply patch to fix "undefined symbol: __aeabi_unwind_cpp_pr0 referenced by libc_a-setjmp.o" issue
50
- PATCH_NAME=" cantunwind.patch"
51
- SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
52
- cp " ${SCRIPT_DIR} /${PATCH_NAME} " " ${SRC} "
53
- cd " ${SRC} "
54
- git apply " ${PATCH_NAME} "
55
- cd ..
56
-
57
49
# Build configuration
58
50
mkdir -p " ${BUILD} " " ${INSTALL} "
59
51
cd " ${BUILD} "
@@ -86,6 +78,9 @@ CFLAGS_FOR_TARGET="-ffunction-sections -fdata-sections -fshort-wchar -DPREFER_SI
86
78
make " -j$( nproc) "
87
79
make install
88
80
81
+ # Removing the .ARM.exidx section
82
+ arm-none-eabi-objcopy -R .ARM.exidx " ${INSTALL} /arm-none-eabi/lib/libc.a"
83
+
89
84
# Stripping debug symbols
90
85
arm-none-eabi-strip --strip-debug " ${INSTALL} /arm-none-eabi/lib/libc.a"
91
86
arm-none-eabi-strip --strip-debug " ${INSTALL} /arm-none-eabi/lib/libm.a"
You can’t perform that action at this time.
0 commit comments