From 4c00fdafea969673dac8c7a17c4e25795c7f2da7 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: May 26 2020 14:44:16 +0000 Subject: subr/pkg_install_files.subr:pkgp_install_files_strip(): check for either of .debug_{frame,info} headers when checking whether to strip(1). --- diff --git a/subr/pkg_install_files.subr b/subr/pkg_install_files.subr index 55d79cb..19c1a15 100644 --- a/subr/pkg_install_files.subr +++ b/subr/pkg_install_files.subr @@ -32,7 +32,7 @@ pkgp_install_files_strip() { return 0; fi; for _bin_path in $(find "${_tree_root}" -perm /a=x -type f); do - if objdump -sj .debug_info "${_bin_path}" >/dev/null 2>&1; then + if objdump -sj .debug_frame -j .debug_info "${_bin_path}" >/dev/null 2>&1; then rtl_log_msg info "Stripping %s..." "${_bin_path}"; if ! "${PKG_TARGET}-strip" "${_bin_path}"; then return 1;