updated patch, passing the line length check.
diff -Nru debhelper-13.3/dh_strip debhelper-13.3.1/dh_strip --- debhelper-13.3/dh_strip 2020-07-17 18:52:20.000000000 +0200 +++ debhelper-13.3.1/dh_strip 2020-12-18 14:04:29.000000000 +0100 @@ -381,6 +381,14 @@ '-R', '.gnu.lto_*', '-R', '.gnu.debuglto_*', '-N', '__gnu_lto_slim', '-N', '__gnu_lto_v1', $_); + # https://github.com/rpm-software-management/rpmlint/blob/master/rpmlint/checks/BinariesCheck.py + # taken from _check_no_text_in_archive function + my $lto_check = join(" ", "readelf -W --section-headers $_", + "| sed -n '/^ *\\[[ 0-9]*\]/s/ *\\[[ 0-9]*\\] *//p'", + "| awk 'BEGIN {rv=1} /^NULL/ {next}", + "\$1 ~ /^.(text|data|(preinit|init|fini)_array\$)/ {if (\$5 !~ /^0+\$/) rv=0} END { exit rv}'"); + verbose_print($lto_check); + system($lto_check) == 0 || error("lto-no-text-in-archive: $_"); } if (-d "$tmp/usr/lib/debug/.dwz" and ($use_build_id > 1 or ($dh{DEBUGPACKAGE} and $dh{DEBUGPACKAGE} ne $package))) { my @files = glob_expand(["$tmp/usr/lib/debug/.dwz"], \&glob_expand_error_handler_reject, '*');

