aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/pr19031b.S
blob: 3249652f4f7a2440de65dc9a50255069de80a4c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
	.text
	.globl g
	.type g, @function
g:
        calll .Lfoo
.Lfoo:
        popl %eax
.Lbar:
        addl $_GLOBAL_OFFSET_TABLE_+(.Lbar-.Lfoo), %eax
	movl f@GOT(%eax), %eax
	ret

	.globl h
	.type h, @function
h:
        leal zed, %eax
        movl zed, %ebx
        addl %ebx, %eax
	ret

	.data
zed:
        .long f - .