diff --git a/debian/changelog b/debian/changelog index 2391fec0..dc6634ce 100644 --- a/debian/changelog +++ b/debian/changelog @@ -58,7 +58,15 @@ llvm-toolchain-snapshot (1:14~++20210715093511+afc760ef3527-1~exp2) unstable; ur -- Sylvestre Ledru Fri, 06 Aug 2021 08:40:58 +0200 -llvm-toolchain-13 (1:13.0.0~+rc2-2) UNRELEASED; urgency=medium +llvm-toolchain-13 (1:13.0.0~+rc2-3) UNRELEASED; urgency=medium + + * compiler-rt scudo, don't add the option + -mno-omit-leaf-frame-pointer when building on + armel & armhf + + -- Sylvestre Ledru Thu, 02 Sep 2021 21:35:26 +0200 + +llvm-toolchain-13 (1:13.0.0~+rc2-2) unstable; urgency=medium * Build with -DCMAKE_POSITION_INDEPENDENT_CODE=ON to libc++ and libc++abi * The changes from 12.0.1-7 diff --git a/debian/patches/disable-no-omit-leaf.diff b/debian/patches/disable-no-omit-leaf.diff new file mode 100644 index 00000000..8baef1d5 --- /dev/null +++ b/debian/patches/disable-no-omit-leaf.diff @@ -0,0 +1,18 @@ +Index: llvm-toolchain-13-13.0.0~+rc2/compiler-rt/lib/scudo/standalone/CMakeLists.txt +=================================================================== +--- llvm-toolchain-13-13.0.0~+rc2.orig/compiler-rt/lib/scudo/standalone/CMakeLists.txt ++++ llvm-toolchain-13-13.0.0~+rc2/compiler-rt/lib/scudo/standalone/CMakeLists.txt +@@ -123,9 +123,10 @@ if (COMPILER_RT_HAS_GWP_ASAN) + list(APPEND SCUDO_OBJECT_LIBS + RTGwpAsan RTGwpAsanBacktraceLibc RTGwpAsanSegvHandler + RTGwpAsanOptionsParser) +- +- list(APPEND SCUDO_CFLAGS -DGWP_ASAN_HOOKS -fno-omit-frame-pointer +- -mno-omit-leaf-frame-pointer) ++ if (NOT ${arch} STREQUAL "armhf" AND NOT ${arch} STREQUAL "armel") ++ list(APPEND SCUDO_CFLAGS -DGWP_ASAN_HOOKS -fno-omit-frame-pointer ++ -mno-omit-leaf-frame-pointer) ++ endif() + endif() + + set(SCUDO_LINK_LIBS) diff --git a/debian/patches/series b/debian/patches/series index 18336ab6..ba3789e2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -145,3 +145,4 @@ scan-build-py-fix-default-bin.diff libclc-llvm-spirv.diff omp-riscv64.patch +disable-no-omit-leaf.diff diff --git a/debian/rules b/debian/rules index c064fab7..b02a457d 100755 --- a/debian/rules +++ b/debian/rules @@ -430,6 +430,7 @@ override_dh_auto_configure: preconfigure -DENABLE_LINKER_BUILD_ID=ON \ -DCOMPILER_RT_USE_LIBCXX=NO \ -DLIBUNWIND_USE_COMPILER_RT=ON \ + $(CMAKE_EXTRA) \ $(Z3_FLAG) \ -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR;M68k" \ -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON \