summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2023-07-22 00:14:55 +0000
committer Steven Moreland <smoreland@google.com> 2023-07-25 23:13:36 +0000
commit8fe37e44b51bf69674b11bff147f135665338f03 (patch)
treefc32f79afd03ba6d176794e43873e49db90ed13e
parentff96fe1589c4a25f28f49291a1543d26f809b52a (diff)
Linker: no demangle.
You can c++filt, but you can't c++unfilt. By having the linker provide the exact name of symbols that are used, we can much more easily resolve missing symbols in version script files. For instance, I spent 2 hours today working around not having this... :( After a while, you get used to it. I don't even see the code. Bug: 206145174 Test: hide all symbols from a library and see beautiful and lossless raw symbols. Change-Id: Ie0730cd503358bf2d383a56be902f7aeef1eea01
-rw-r--r--cc/config/global.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/config/global.go b/cc/config/global.go
index 013b6592b..ceab49801 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -147,6 +147,7 @@ var (
commonGlobalLldflags = []string{
"-fuse-ld=lld",
"-Wl,--icf=safe",
+ "-Wl,--no-demangle",
}
deviceGlobalCppflags = []string{