From 06d55fdb46d6ed4f1ba6bcd22677f3773717cf20 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 15 Dec 2025 19:23:30 -0500 Subject: [PATCH] Remove unneeded ld-linux .debug files (RHEL-27851) Resolves: RHEL-27851 --- wrap-find-debuginfo.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wrap-find-debuginfo.sh b/wrap-find-debuginfo.sh index 5257de7..7bc79aa 100644 --- a/wrap-find-debuginfo.sh +++ b/wrap-find-debuginfo.sh @@ -114,6 +114,13 @@ for ldso_debug_candidate in `find "$sysroot_path" -maxdepth 2 \ fi done rm -f "$ldso_debug" +# Same logic, but for installed ld-linux*.debug files, where the depth +# is more and there may be more than one (32-bit and 64-bit) +for ldso_debug_candidate in `find "$sysroot_path/usr/lib/debug" \ + -regextype posix-extended \ + -regex '.*/ld(-.*|64|)\.so\.[0-9]+.*debug$' -type f` ; do + rm -f "$ldso_debug_candidate" +done # ld.so: Rewrite the source file paths to match the extracted # locations. First compute the arguments for invoking debugedit.