summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2020-05-07 11:45:28 +0300
committerDongkyun Son <dongkyun.s@samsung.com>2020-05-07 11:41:06 +0000
commitfc3c4a93a6e665927ec495cc52130fbb87e35c7c (patch)
treeadbf4af01f2338a515c28593da26dbe9e49a6853
parent6428714ec2f4a0aa2b3c3b2e1b81c2cedf06e8c6 (diff)
downloadrpm-fc3c4a93a6e665927ec495cc52130fbb87e35c7c.tar.gz
rpm-fc3c4a93a6e665927ec495cc52130fbb87e35c7c.tar.bz2
rpm-fc3c4a93a6e665927ec495cc52130fbb87e35c7c.zip
find-debuginfo.sh erroneously detected files with 'debug' in name as files which do have debuginfo sections. Change-Id: Ie18714130f2ee315cdabf56e521eb6f63cb98e8b Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rwxr-xr-xscripts/find-debuginfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index f2cc8b8f8..c5bb4196f 100755
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -281,7 +281,7 @@ $strict || strict_error=WARNING
find $RPM_BUILD_ROOT ! -path "${debugdir}/*.debug" -type f \( -perm /111 -or -name "*.so*" -or -name "*.ko" \) ! -name "*.a" -print0 | sort -z |
xargs --no-run-if-empty -0 stat -c '%h %D_%i %n' |
while read nlinks inum f; do
- case $(objdump -h $f 2>/dev/null | egrep -o '(debug[\.a-z_]*|gnu.version)') in
+ case $(objdump -h $f 2>/dev/null | sed -n '/^Sections:/,$p' | egrep -o '(debug[\.a-z_]*|gnu.version)') in
*debuglink*) continue ;;
*debug*) ;;
*gnu.version*)