We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b593110 commit 8f8a640Copy full SHA for 8f8a640
lld/test/ELF/riscv-gp.s
@@ -18,6 +18,14 @@
18
19
# ERR: error: relocation R_RISCV_PCREL_HI20 cannot be used against symbol '__global_pointer$'; recompile with -fPIC
20
21
+# RUN: ld.lld -pie --no-dynamic-linker --export-dynamic %t.64.o -o %t.64e
22
+# RUN: llvm-readelf -s %t.64e | FileCheck %s --check-prefix=STATICPIE
23
+
24
+# STATICPIE: '.dynsym'
25
+# STATICPIE-NOT: __global_pointer$
26
+# STATICPIE: '.symtab'
27
+# STATICPIE: __global_pointer$
28
29
## -r mode does not define __global_pointer$.
30
# RUN: ld.lld -r %t.64.o -o %t.64.ro
31
# RUN: llvm-readelf -s %t.64.ro | FileCheck --check-prefix=RELOCATABLE %s
0 commit comments