RISC-V: Adjust __global_pointer$ value to reduce code size.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-riscv-elf / pcrel-lo-addend.s
CommitLineData
2a0d9853
JW
1 .text
2 .globl _start
3_start:
4 auipc ra, %pcrel_hi(tdata)
5 addi ra, ra, %pcrel_lo(.text)
6 lb t1, 0(ra)
7foo:
8 auipc ra, %pcrel_hi(tdata)
9 addi ra, ra, %pcrel_lo(.text+12)
10 lb t2, 1(ra)
11
12 .data
13tdata:
14 .byte 0xff
15 .byte 0x00
16 .byte 0xf0
17 .byte 0x0f
This page took 0.060345 seconds and 4 git commands to generate.