i386: Improve PLT generation and synthetic PLT symbols
[external/binutils.git] / ld / testsuite / ld-i386 / plt-pic2.dd
1 #source: plt-pic.s
2 #as: --32
3 #ld: -z now -shared -melf_i386
4 #objdump: -dwr
5 #target: i?86-*-*
6
7 .*: +file format .*
8
9
10 Disassembly of section .plt:
11
12 0+180 <.plt>:
13  +[a-f0-9]+:    ff b3 04 00 00 00       pushl  0x4\(%ebx\)
14  +[a-f0-9]+:    ff a3 08 00 00 00       jmp    \*0x8\(%ebx\)
15  +[a-f0-9]+:    00 00                   add    %al,\(%eax\)
16         ...
17
18 Disassembly of section .plt.got:
19
20 0+190 <fn1@plt>:
21  +[a-f0-9]+:    ff a3 f8 ff ff ff       jmp    \*-0x8\(%ebx\)
22  +[a-f0-9]+:    66 90                   xchg   %ax,%ax
23
24 0+198 <fn2@plt>:
25  +[a-f0-9]+:    ff a3 fc ff ff ff       jmp    \*-0x4\(%ebx\)
26  +[a-f0-9]+:    66 90                   xchg   %ax,%ax
27
28 Disassembly of section .text:
29
30 0+1a0 <foo>:
31  +[a-f0-9]+:    e8 eb ff ff ff          call   190 <fn1@plt>
32  +[a-f0-9]+:    e9 ee ff ff ff          jmp    198 <fn2@plt>
33 #pass