Add R_386_GOT32X support to gas and ld
[external/binutils.git] / ld / testsuite / ld-i386 / load1.s
1         .data
2         .type   bar, @object
3 bar:
4         .byte   1
5         .size   bar, .-bar
6         .globl  foo
7         .type   foo, @object
8 foo:
9         .byte   1
10         .size   foo, .-foo
11         .text
12         .globl  _start
13         .type   _start, @function
14 _start:
15         movl    bar@GOT(%ecx), %eax
16         adcl    bar@GOT(%ecx), %eax
17         addl    bar@GOT(%ecx), %ebx
18         andl    bar@GOT(%ecx), %ecx
19         cmpl    bar@GOT(%ecx), %edx
20         orl     bar@GOT(%ecx), %edi
21         sbbl    bar@GOT(%ecx), %esi
22         subl    bar@GOT(%ecx), %ebp
23         xorl    bar@GOT(%ecx), %esp
24         testl   %ecx, bar@GOT(%ecx)
25         movl    bar@GOT, %eax
26         adcl    bar@GOT, %eax
27         addl    bar@GOT, %ebx
28         andl    bar@GOT, %ecx
29         cmpl    bar@GOT, %edx
30         orl     bar@GOT, %edi
31         sbbl    bar@GOT, %esi
32         subl    bar@GOT, %ebp
33         xorl    bar@GOT, %esp
34         testl   %ecx, bar@GOT
35         movl    foo@GOT(%ecx), %eax
36         adcl    foo@GOT(%ecx), %eax
37         addl    foo@GOT(%ecx), %ebx
38         andl    foo@GOT(%ecx), %ecx
39         cmpl    foo@GOT(%ecx), %edx
40         orl     foo@GOT(%ecx), %edi
41         sbbl    foo@GOT(%ecx), %esi
42         subl    foo@GOT(%ecx), %ebp
43         xorl    foo@GOT(%ecx), %esp
44         testl   %ecx, foo@GOT(%ecx)
45         movl    foo@GOT, %eax
46         adcl    foo@GOT, %eax
47         addl    foo@GOT, %ebx
48         andl    foo@GOT, %ecx
49         cmpl    foo@GOT, %edx
50         orl     foo@GOT, %edi
51         sbbl    foo@GOT, %esi
52         subl    foo@GOT, %ebp
53         xorl    foo@GOT, %esp
54         testl   %ecx, foo@GOT
55         .size   _start, .-_start