[Lldb-commits] [lldb] 64c6bb3 - test: ensure that we dead-strip in the linker
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 24 10:19:48 PST 2019
Author: Saleem Abdulrasool
Date: 2019-12-24T10:19:22-08:00
New Revision: 64c6bb37832c2139a91801fece96de8898151079
URL: https://github.com/llvm/llvm-project/commit/64c6bb37832c2139a91801fece96de8898151079
DIFF: https://github.com/llvm/llvm-project/commit/64c6bb37832c2139a91801fece96de8898151079.diff
LOG: test: ensure that we dead-strip in the linker
`/OPT:REF` is needed for link to dead strip functions, `/Gy` by itself
is not sufficient.
Added:
Modified:
lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile b/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
index fa147bb2096a..ea15ec84d685 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/dead-strip/Makefile
@@ -8,6 +8,7 @@ ifeq "$(OS)" "Darwin"
LD_EXTRAS = -Xlinker -dead_strip
else ifeq "$(OS)" "Windows_NT"
CFLAGS_EXTRAS += /Gw /Gy
+ LD_EXTRAS = -Xlinker /OPT:REF
else
CFLAGS_EXTRAS += -fdata-sections -ffunction-sections
LD_EXTRAS = -Wl,--gc-sections
More information about the lldb-commits
mailing list