From 198bf7cc40a2986d2169fb86781e35b787728efa Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 27 Jun 2024 13:48:17 -0700 Subject: [PATCH] Strip .gnu.build-attrib* sections from some binaries too Resolves: RHEL-29882 --- clang.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/clang.spec b/clang.spec index 814ad11..a00d548 100644 --- a/clang.spec +++ b/clang.spec @@ -80,7 +80,7 @@ Name: %pkg_name Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} -Release: 6%{?dist} +Release: 7%{?dist} Summary: A C language family front-end for LLVM License: NCSA @@ -449,8 +449,8 @@ CFLAGS="$CFLAGS -Wno-address -Wno-nonnull -Wno-maybe-uninitialized" # Strip .gnu.build.attrib sections, because find-debuginfo.sh is failing to strip debug info, # because there are too many of them. # https://issues.redhat.com/browse/RHEL-43211 -for f in libclang-cpp.so.%{maj_ver}.%{min_ver} libclang.so.%{maj_ver}.%{min_ver}.%{patch_ver}; do - objcopy -R '.gnu.build.attrib*' aarch64-redhat-linux-gnu/lib64/$f +for f in lib64/libclang-cpp.so.%{maj_ver}.%{min_ver} lib64/libclang.so.%{maj_ver}.%{min_ver}.%{patch_ver} bin/c-index-test bin/clang-tidy bin/clangd; do + objcopy -R '.gnu.build.attrib*' aarch64-redhat-linux-gnu/$f done %endif @@ -742,6 +742,9 @@ SOURCE_DATE_EPOCH=1629181597 LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ %endif %changelog +* Thu Jun 27 2024 Tom Stellard - 18.1.2-7 +- Strip .gnu.build-attrib* sections from some binaries too + * Sat Jun 22 2024 Tom Stellard - 18.1.2-6 - Strip .gnu.build-attrib* sections out of libraries