summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>2019-05-31 02:21:35 +0300
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>2019-05-31 02:23:47 +0300
commitddab96bfe037f6da2502ff073c2e9a8815c3dc98 (patch)
treec7688840c9162c50bf7605b10b9d06a745eba626
parent330ddec752127e5e37378245a10d4f093e1893b5 (diff)
downloadrpm-sandbox/mkashkarov/annobin.tar.gz
rpm-sandbox/mkashkarov/annobin.tar.bz2
rpm-sandbox/mkashkarov/annobin.zip
Strip .gnu.build.attributes section into debuginfosandbox/mkashkarov/annobin
The section contains ELF format notes. The type field of a note is used to distinguish the range of memory over which an attribute applies. The name field identifies the attribute and gives it a value and the description field specifies the starting and ending addresses for where the attribute is applied.
-rw-r--r--scripts/find-debuginfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index 97e052d94..0180d76fc 100644
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -356,7 +356,7 @@ while read nlinks inum f; do
if test "$strip_disable" = true ; then
strip_option=
fi
- objcopy --add-gnu-debuglink=$debugfn -R .comment -R .GCC.command.line $strip_option $f
+ objcopy --add-gnu-debuglink=$debugfn -R .comment -R .GCC.command.line -R .gnu.build.attributes $strip_option $f
chmod $mode $f
) || :
else