summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d
blob: 295895b82679314c30f622eea465d760586faf1b (plain)
1
2
3
4
#source: pcrel-lo-addend-3c.s
#as: -march=rv64i -mabi=lp64 -mno-relax
#ld: -m[riscv_choose_lp64_emul] -Tpcrel-lo-addend-3.ld
#error: .*dangerous relocation: %pcrel_lo with addend isn't allowed for R_RISCV_GOT_HI20