Do not require .annobin symbols in wrap-find-debuginfo.sh

This commit is contained in:
Florian Weimer 2022-09-23 10:01:28 +02:00
parent aa0d1b7d9f
commit 4c6fa526bf

View File

@ -136,9 +136,10 @@ done
debug_base_name=${last_arg:-$RPM_BUILD_ROOT}
$debugedit -b "$debug_base_name" -d "$debug_dest_name" -n $ldso_path
# Remove the .annobin* symbols (and only them).
nm --format=just-symbols "$ldso_path" \
| grep '^\.annobin' > "$ldso_tmp.annobin-symbols"
objcopy --strip-symbols="$ldso_tmp.annobin-symbols" "$ldso_path"
if nm --format=just-symbols "$ldso_path" \
| grep '^\.annobin' > "$ldso_tmp.annobin-symbols"; then
objcopy --strip-symbols="$ldso_tmp.annobin-symbols" "$ldso_path"
fi
# Apply single-file DWARF optimization.
dwz $ldso_path