Skip to content

Commit

Permalink
[test] Fix lld/test/ELF/riscv-pcrel-hilo-error.s after D73211
Browse files Browse the repository at this point in the history
(cherry picked from commit ddfe875)
  • Loading branch information
jrtc27 authored and zmodem committed Jan 23, 2020
1 parent 8634a82 commit a3982a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lld/test/ELF/riscv-pcrel-hilo-error.s
Expand Up @@ -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)

0 comments on commit a3982a5

Please sign in to comment.