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

This commit is contained in:
Florian Weimer 2022-09-14 13:58:30 +02:00
parent 6c17684392
commit b400cead41
2 changed files with 7 additions and 0 deletions

View File

@ -2184,6 +2184,9 @@ update_gconv_modules_cache ()
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
%changelog
* Wed Sep 14 2022 Florian Weimer <fweimer@redhat.com> - 2.36.9000-7
- Remove .annobin* symbols from ld.so (#2126477)
* Tue Sep 13 2022 Florian Weimer <fweimer@redhat.com> - 2.36.9000-6
- Drop glibc-deprecated-selinux-makedb.patch. Upstream has been ported
to new libselinux.

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