Skip to content

Commit ddfe875

Browse files
committed
[test] Fix lld/test/ELF/riscv-pcrel-hilo-error.s after D73211
1 parent cf2b498 commit ddfe875

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lld/test/ELF/riscv-pcrel-hilo-error.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@
44

55
# CHECK: error: R_RISCV_PCREL_LO12 relocation points to an absolute symbol: external
66

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)
713
addi sp,sp,%pcrel_lo(external)

0 commit comments

Comments
 (0)