blob: 13f34e052b7697ebfbcf629a5e6b2c80c249af41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#source: data-reloc.s
#as: -march=rv32i -mabi=ilp32 -defsym __abs__=1 -defsym __addr__=1 -defsym __undef__=1
#ld: -m[riscv_choose_ilp32_emul] -Ttext 0x8000 --defsym _start=0x0 --defsym abs=0x100 --defsym abs_local=0x200 -shared
#objdump: -dR
.*:[ ]+file format .*
Disassembly of section .text:
0+8000 <addr_globl>:
8000: 00000000 .word 0x00000000
8000: R_RISCV_32 addr_globl
0+8004 <addr_local>:
...
8004: R_RISCV_RELATIVE \*ABS\*\+0x8004
8008: R_RISCV_32 abs
800c: 00000200 .word 0x00000200
8010: 00000000 .word 0x00000000
8010: R_RISCV_32 undef
|