Add R_386_GOT32X support to gas and ld
[deliverable/binutils-gdb.git] / ld / testsuite / ld-i386 / got1d.S
1 .globl bar
2 .type bar, @function
3 bar:
4 pushl %ebx
5 call __x86.get_pc_thunk.cx
6 addl $_GLOBAL_OFFSET_TABLE_, %ecx
7 subl $24, %esp
8 leal __FUNCTION__.1862@GOTOFF(%ecx), %eax
9 movl %eax, (%esp)
10 call *puts@GOT(%ecx)
11 addl $24, %esp
12 popl %ebx
13 ret
14 .size bar, .-bar
15
16 .globl plt
17 .type plt, @function
18 plt:
19 pushl %esi
20 pushl %ebx
21 call __x86.get_pc_thunk.bx
22 1:
23 addl $_GLOBAL_OFFSET_TABLE_, %ebx
24 subl $20, %esp
25 leal __FUNCTION__.1866@GOTOFF(%ebx), %esi
26 movl %esi, (%esp)
27 call *puts@GOT(%ebx)
28 addl $20, %esp
29 popl %ebx
30 popl %esi
31 ret
32 .section .rodata
33 .type __FUNCTION__.1866, @object
34 .size __FUNCTION__.1866, 4
35 __FUNCTION__.1866:
36 .string "plt"
37 .type __FUNCTION__.1862, @object
38 .size __FUNCTION__.1862, 4
39 __FUNCTION__.1862:
40 .string "bar"
41 .section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat
42 .globl __x86.get_pc_thunk.bx
43 .hidden __x86.get_pc_thunk.bx
44 .type __x86.get_pc_thunk.bx, @function
45 __x86.get_pc_thunk.bx:
46 movl (%esp), %ebx
47 ret
48 .section .text.__x86.get_pc_thunk.cx,"axG",@progbits,__x86.get_pc_thunk.cx,comdat
49 .globl __x86.get_pc_thunk.cx
50 .hidden __x86.get_pc_thunk.cx
51 .type __x86.get_pc_thunk.cx, @function
52 __x86.get_pc_thunk.cx:
53 movl (%esp), %ecx
54 ret
This page took 0.030601 seconds and 4 git commands to generate.