You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
--- rpm-4.11.3/scripts/find-debuginfo.sh.old 2018-05-03 09:53:34.098654333 +0200 |
|
+++ rpm-4.11.3/scripts/find-debuginfo.sh 2018-05-03 13:35:32.092303548 +0200 |
|
@@ -9,7 +9,7 @@ |
|
# [[-l filelist]... [-p 'pattern'] -o debuginfo.list] |
|
# [builddir] |
|
# |
|
-# The -g flag says to use strip -g instead of full strip on DSOs. |
|
+# The -g flag says to use strip -g instead of full strip on DSOs or EXEs. |
|
# The --strict-build-id flag says to exit with failure status if |
|
# any ELF binary processed fails to contain a build-id note. |
|
# The -r flag says to use eu-strip --reloc-debug-sections. |
|
@@ -29,7 +29,7 @@ |
|
# All file names in switches are relative to builddir (. if not given). |
|
# |
|
|
|
-# With -g arg, pass it to strip on libraries. |
|
+# With -g arg, pass it to strip on libraries or executables. |
|
strip_g=false |
|
|
|
# with -r arg, pass --reloc-debug-sections to eu-strip. |
|
@@ -130,6 +130,7 @@ |
|
$strip_r && r=--reloc-debug-sections |
|
$strip_g && case "$(file -bi "$2")" in |
|
application/x-sharedlib*) g=-g ;; |
|
+ application/x-executable*) g=-g ;; |
|
esac |
|
eu-strip --remove-comment $r $g -f "$1" "$2" || exit |
|
chmod 444 "$1" || exit
|
|
|