From ddab96bfe037f6da2502ff073c2e9a8815c3dc98 Mon Sep 17 00:00:00 2001 From: Mikhail Kashkarov Date: Fri, 31 May 2019 02:21:35 +0300 Subject: Strip .gnu.build.attributes section into debuginfo 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. --- scripts/find-debuginfo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3