From 3ce6e3371066bb702a9004d7c148c99608312d2b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 27 Sep 2023 14:47:25 -0400 Subject: [PATCH] pipelines: strip: use -g by default when stripping This preserves the symbol table, allowing tools like addr2line to work, while still stripping the raw debugging information. Signed-off-by: Ariadne Conill --- pkg/build/pipelines/strip.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/build/pipelines/strip.yaml b/pkg/build/pipelines/strip.yaml index 4e0ec0976..19b187e18 100644 --- a/pkg/build/pipelines/strip.yaml +++ b/pkg/build/pipelines/strip.yaml @@ -5,6 +5,12 @@ needs: - binutils - scanelf +inputs: + opts: + description: | + The option flags to pass to the strip command. + default: -g + pipeline: - working-directory: ${{targets.contextdir}} runs: | @@ -13,5 +19,5 @@ pipeline: [ "$osabi" != "STANDALONE" ] || continue # scanelf may have picked up a temp file so verify that file still exists - strip "${filename}" || [ ! -e "$filename" ] + strip ${{inputs.opts}} "${filename}" || [ ! -e "$filename" ] done