From 0a0c42d75a0c593e97a133abce11bddab9241874 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Wed, 15 Jun 2022 09:19:43 +0900 Subject: [PATCH] scripts: build: Discard more debug sections when stripping libraries This commit updates the build script to strip additional debug sections added by the Binutils 2.38 when stripping the target libraries. Signed-off-by: Stephanos Ioannidis --- scripts/build/internals.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index a86483ed..d071c841 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -162,7 +162,8 @@ strip_target_lib() --discard-locals -R .comment -R .note -R .debug_info -R .debug_aranges -R .debug_pubnames -R .debug_pubtypes -R .debug_abbrev -R .debug_line - -R .debug_str -R .debug_ranges -R .debug_loc + -R .debug_str -R .debug_ranges -R .debug_loc -R .debug_loclists + -R .debug_rnglists -R .debug_line_str " find "$1" -name "$2" | while read target_lib; do