summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d
blob: cd50cbfd2629f26a353ddd4314e2da2c7dff2ffc (plain)
1
2
3
4
5
#name: %pcrel_lo overflow with an addend (2a)
#source: pcrel-lo-addend-2a.s
#as: -march=rv32ic
#ld: -m[riscv_choose_ilp32_emul] --no-relax
#error: .*dangerous relocation: %pcrel_lo overflow with an addend, the value of %pcrel_hi is 0x1000 without any addend, but may be 0x2000 after adding the %pcrel_lo addend