summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/gpoff-2a.S
blob: cb9f26755a7b82289399377ccf631b433536708d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
	.text
	.globl get_foo
get_foo:
	movl	%gs:foo@GPOFF, %eax
	ret

	.globl get_foo_gpoff
get_foo_gpoff:
	leal	foo@GPOFF, %eax
	ret

	.data
	.globl foo_gpoff
foo_gpoff:
	.long foo@GPOFF

	.data
foo:
	.long 0x12345678