about summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks/separate-debug-info.sh
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2022-03-23 21:43:15 +0100
committerVladimír Čunát <v@cunat.cz>2022-03-23 21:43:15 +0100
commita7ccddeb54d9783cce95299132dd3d36ab2e3615 (patch)
tree883bff7de0cedc0dae0c76591b9bc292ec960c07 /pkgs/build-support/setup-hooks/separate-debug-info.sh
parent2102efd88baf99a89f9a6602c899535f28e646fa (diff)
Revert "Merge #160259: separateDebugInfo: Use --strip-unneeded"
This reverts commit 848091a52b734f2fb30c0e185befc31a2f3733de, reversing
changes made to ab0e692ac7d4284455410d542b560ae3600242f3.

It caused issues with elfutils tests,
probably through over-stripping of glibc parts.
Diffstat (limited to 'pkgs/build-support/setup-hooks/separate-debug-info.sh')
-rw-r--r--pkgs/build-support/setup-hooks/separate-debug-info.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/separate-debug-info.sh b/pkgs/build-support/setup-hooks/separate-debug-info.sh
index d910bce11af02..1a23e6b198ee0 100644
--- a/pkgs/build-support/setup-hooks/separate-debug-info.sh
+++ b/pkgs/build-support/setup-hooks/separate-debug-info.sh
@@ -34,7 +34,7 @@ _separateDebugInfo() {
         # firmware blobs in QEMU.)
         (
             $OBJCOPY --only-keep-debug "$i" "$dst/${id:0:2}/${id:2}.debug"
-            $STRIP --strip-unneeded "$i"
+            $STRIP --strip-debug "$i"
 
             # Also a create a symlink <original-name>.debug.
             ln -sfn ".build-id/${id:0:2}/${id:2}.debug" "$dst/../$(basename "$i")"