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 cf2b498 commit ddfe875Copy full SHA for ddfe875
lld/test/ELF/riscv-pcrel-hilo-error.s
@@ -4,4 +4,10 @@
4
5
# CHECK: error: R_RISCV_PCREL_LO12 relocation points to an absolute symbol: external
6
7
+# We provide a dummy %pcrel_hi referred to by external to appease the
8
+# assembler, but make external weak so --defsym can still override it at link
9
+# time.
10
+.weak external
11
+external:
12
+auipc sp,%pcrel_hi(external)
13
addi sp,sp,%pcrel_lo(external)
0 commit comments