summaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/strip-14rela.s
blob: d0277247c5314dea5567b979fc48e4055a94e91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
	.text
foo:
	.dc.l    0x12345678

	.section .rela.text,""
	.ifdef	 ELF64

	.dc.a	 0
	.dc.a    0x000ffff000000000 + RELOC
	.dc.a	 0x0000000000000001

	.dc.a	 0
	.dc.a    0
	.dc.a	 0
	.else

	# Some targets, such as `h8300-*' or `ip2k-*', use 16-bit addresses.
	# With them `.dc.a' emits 16-bit quantities, so we need to use
	# `.dc.l' for 32-bit relocation data.
	.dc.l	 0
	.dc.l	 0x0ffff000 + RELOC
	.dc.l	 0x00000001

	.dc.l	 0
	.dc.l	 0
	.dc.l	 0
	.endif