summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-riscv-elf/data-reloc-rv64-pic.d
blob: dab0ccc926005a355633595747c4208e81938ca5 (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=rv64i -mabi=lp64 -defsym __64_bit__=1 -defsym __abs__=1 -defsym __addr__=1 -defsym __undef__=1
#ld: -m[riscv_choose_lp64_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: R_RISCV_64	addr_globl

0+8008 <addr_local>:
	...
			8008: R_RISCV_RELATIVE	\*ABS\*\+0x8008
			8010: R_RISCV_64	abs
    8018:	00000200          	.word	0x00000200
	...
			8020: R_RISCV_64	undef