summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/arm/pic.d
blob: 160b1c69dbd165325d53a2e10fde8b0f05801685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#objdump: -dr --prefix-addresses --show-raw-insn
#name: PIC

# Test generation of PIC

.*: +file format .*arm.*

Disassembly of section .text:
0x0+0 ebfffffe 	bl	0x0+0
			0: R_ARM_PC24	foo
0x0+4 ebfffffe 	bl	0x0+0
			4: R_ARM_PLT32	foo
	\.\.\.
			8: R_ARM_ABS32	sym
			c: R_ARM_GOT32	sym
			10: R_ARM_GOTOFF	sym
			14: R_ARM_GOTPC	_GLOBAL_OFFSET_TABLE_