Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-riscv-elf/relro-relax-lui.s
2023-03-06 14:48:14 +01:00

15 lines
226 B
ArmAsm

.section .rodata
.align 10
.globl SymbolRodata
.set SymbolRodata, . + 0x1800
.word 0x0
.section .init_array
.word 0x0
.text
.globl _start
_start:
lui a0, %hi (SymbolRodata)
addi a0, a0, %lo (SymbolRodata)