https://github.com/dzhidzhoev created https://github.com/llvm/llvm-project/pull/93808
When PIE is enabled on a platform by default, these tests fail since the `target variable` command can't read a global string variable value before running an inferior process. >From d305048e67dd48012f5c689f796ff0a18b8d215f Mon Sep 17 00:00:00 2001 From: Vladislav Dzhidzhoev <vdzhidzh...@accesssoftek.com> Date: Thu, 9 May 2024 04:53:23 +0000 Subject: [PATCH] [lldb][test] Disable PIE for some API tests These tests fail when PIE is enabled by default on a platform since `target variable` can't read global string variable value before running inferior. --- lldb/test/API/commands/target/basic/Makefile | 4 ++++ lldb/test/API/lang/c/global_variables/Makefile | 3 +++ lldb/test/API/lang/cpp/char8_t/Makefile | 3 +++ 3 files changed, 10 insertions(+) diff --git a/lldb/test/API/commands/target/basic/Makefile b/lldb/test/API/commands/target/basic/Makefile index b31e594019f6f..e66971834b689 100644 --- a/lldb/test/API/commands/target/basic/Makefile +++ b/lldb/test/API/commands/target/basic/Makefile @@ -3,4 +3,8 @@ # C_SOURCES := b.c # EXE := b.out +ifndef PIE + LDFLAGS := -no-pie +endif + include Makefile.rules diff --git a/lldb/test/API/lang/c/global_variables/Makefile b/lldb/test/API/lang/c/global_variables/Makefile index 7b94b6556f254..00c2557033d81 100644 --- a/lldb/test/API/lang/c/global_variables/Makefile +++ b/lldb/test/API/lang/c/global_variables/Makefile @@ -2,5 +2,8 @@ C_SOURCES := main.c DYLIB_NAME := a DYLIB_C_SOURCES := a.c +ifndef PIE + LDFLAGS := -no-pie +endif include Makefile.rules diff --git a/lldb/test/API/lang/cpp/char8_t/Makefile b/lldb/test/API/lang/cpp/char8_t/Makefile index e7c9938b5a85e..28f982a0078d8 100644 --- a/lldb/test/API/lang/cpp/char8_t/Makefile +++ b/lldb/test/API/lang/cpp/char8_t/Makefile @@ -1,4 +1,7 @@ CXX_SOURCES := main.cpp CXXFLAGS_EXTRAS := -std=c++2a -fchar8_t +ifndef PIE + LDFLAGS := -no-pie +endif include Makefile.rules _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits