Remove .annobin* symbols from ld.so (#2126477)

This commit is contained in:
Florian Weimer 2022-09-14 13:58:30 +02:00
parent 6559823220
commit 51bba7af4c
2 changed files with 8 additions and 1 deletions

View File

@ -159,7 +159,7 @@ Version: %{glibcversion}
# - It allows using the Release number without the %%dist tag in the dependency
# generator to make the generated requires interchangeable between Rawhide
# and ELN (.elnYY < .fcXX).
%global baserelease 4
%global baserelease 5
Release: %{baserelease}%{?dist}
# In general, GPLv2+ is used by programs, LGPLv2+ is used for
@ -2185,6 +2185,9 @@ update_gconv_modules_cache ()
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog
* Fri Sep 23 2022 Florian Weimer <fweimer@redhat.com> - 2.36-5
- Remove .annobin* symbols from ld.so (#2126477)
* Wed Sep 14 2022 Florian Weimer <fweimer@redhat.com> - 2.36-4
- Auto-sync with upstream branch release/2.36/master,
commit df51334828f2af214105aad82042140ee3a6de0a:

View File

@ -135,6 +135,10 @@ while true ; do
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"
# Apply single-file DWARF optimization.
dwz $ldso_path