9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
23 lines
923 B
Diff
23 lines
923 B
Diff
From b699b73451c57ac01c2680c0b86e1f56ca19e51c Mon Sep 17 00:00:00 2001
|
|
From: Jakub Konka <kubkon@jakubkonka.com>
|
|
Date: Sat, 6 May 2023 07:55:46 +0200
|
|
Subject: [PATCH] Fix handling of --debug-strip
|
|
|
|
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
|
|
---
|
|
elf/cmdline.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/elf/cmdline.cc b/elf/cmdline.cc
|
|
index 3ac19f237..731af63ab 100644
|
|
--- a/elf/cmdline.cc
|
|
+++ b/elf/cmdline.cc
|
|
@@ -994,7 +994,7 @@ std::vector<std::string> parse_nonpositional_args(Context<E> &ctx) {
|
|
} else if (read_flag("strip-all") || read_flag("s")) {
|
|
ctx.arg.strip_all = true;
|
|
} else if (read_flag("strip-debug") || read_flag("S")) {
|
|
- ctx.arg.strip_all = true;
|
|
+ ctx.arg.strip_debug = true;
|
|
} else if (read_flag("warn-unresolved-symbols")) {
|
|
ctx.arg.unresolved_symbols = UNRESOLVED_WARN;
|
|
} else if (read_flag("error-unresolved-symbols")) {
|