[test] Fix lld/test/ELF/riscv-pcrel-hilo-error.s after D73211

This commit is contained in:
James Clarke 2020-01-23 02:30:10 +00:00
parent cf2b498d28
commit ddfe8751b1
1 changed files with 6 additions and 0 deletions

View File

@ -4,4 +4,10 @@
# CHECK: error: R_RISCV_PCREL_LO12 relocation points to an absolute symbol: external
# We provide a dummy %pcrel_hi referred to by external to appease the
# assembler, but make external weak so --defsym can still override it at link
# time.
.weak external
external:
auipc sp,%pcrel_hi(external)
addi sp,sp,%pcrel_lo(external)