From: Michael Jeanson Date: Tue, 29 Aug 2023 18:40:33 +0000 (-0400) Subject: jjb: lttng-modules: add patch for v4.5 to v4.8 with gcc 11 on armhf X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=15ef760eb9bad58b543d651336e14671096ce941;p=lttng-ci.git jjb: lttng-modules: add patch for v4.5 to v4.8 with gcc 11 on armhf Change-Id: Ibc4f42825b7157880606053a6c9b0a08bc7de70e Signed-off-by: Michael Jeanson --- diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index eee5a57..13f4aaf 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -453,6 +453,18 @@ EOF fi fi + if { vergte "${kversion}" "4.5"; } && { verlt "${kversion}" "4.8"; } ; then + # Kernels between v4.5 and v4.8 built with gcc >= 8 on arm will hit an + # assembler error : + # + # kernel/.tmp_fork.s: Assembler messages: + # kernel/.tmp_fork.s:1790: Error: .err encountered + # + # @see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85745 + # + patch_linux_kernel 9f73bd8bb445e0cbe4bcef6d4cfc788f1e184007 + fi + # Newer binutils don't accept 3 operand 'cmp' instructions on ppc64 # Convert them to 'cmpw' which was previously done silently if verlt "$kversion" "4.9"; then