summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-12-11 16:24:14 +0000
committerTamas Berghammer <tberghammer@google.com>2015-12-11 16:24:14 +0000
commite43482b626b5f8e8fe85aad0c91fd8e637f67cd4 (patch)
tree45a6102b113f507e6ffea6d03932b7ed30d46054 /lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk
parent734a0b3f81e24d106e1e4b46d000a11f865a42e6 (diff)
downloadbcm5719-llvm-e43482b626b5f8e8fe85aad0c91fd8e637f67cd4.tar.gz
bcm5719-llvm-e43482b626b5f8e8fe85aad0c91fd8e637f67cd4.zip
Create test for llvm.org/pr25806
LLDB don't detect the loading of a shared object file linked against the main executable before the static initializers are executed for the given module. Because of this it is not possible to get breakpoint hits in these static initializers and to display proper debug info in case of a crash in these codes. llvm-svn: 255342
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk
index ebb5ce15787..5b5691efeef 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/c.mk
@@ -3,7 +3,9 @@ LEVEL := ../../make
LIB_PREFIX := loadunload_
DYLIB_NAME := $(LIB_PREFIX)c
-DYLIB_C_SOURCES := c.c
+DYLIB_CXX_SOURCES := c.cpp
DYLIB_ONLY := YES
+CXXFLAGS += -fPIC
+
include $(LEVEL)/Makefile.rules
OpenPOWER on IntegriCloud