Skip to content

Commit 0ac194e

Browse files
committed
[lldb][RISCV] Fixed TestSymbolFileJSON for RISC-V
The RISC-V ABI requires executables to support loading at arbitrary addresses to enable shared libraries and secure loading (ASLR). In PIC mode, function addresses cannot be hardcoded, and consequently we cannot strip symbols that are dynamically linked. By disabling PIC, we can strip such symbols for testing.
1 parent da1eabd commit 0ac194e

File tree

1 file changed

+1
-0
lines changed
  • lldb/test/API/functionalities/json/symbol-file

1 file changed

+1
-0
lines changed

lldb/test/API/functionalities/json/symbol-file/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
C_SOURCES := main.c
2+
CFLAGS_EXTRAS := -no-pie
23

34
all: stripped.out
45

0 commit comments

Comments
 (0)