i386: Improve PLT generation and synthetic PLT symbols
[external/binutils.git] / ld / testsuite / ld-i386 / plt2.dd
1 #source: plt2.s
2 #as: --32
3 #ld: -z now -melf_i386
4 #objdump: -dwr
5 #target: i?86-*-*
6
7 .*: +file format .*
8
9
10 Disassembly of section .plt:
11
12 0+80481c0 <.plt>:
13  +[a-f0-9]+:    ff 35 b4 92 04 08       pushl  0x80492b4
14  +[a-f0-9]+:    ff 25 b8 92 04 08       jmp    \*0x80492b8
15  +[a-f0-9]+:    00 00                   add    %al,\(%eax\)
16         ...
17
18 0+80481d0 <fn1@plt>:
19  +[a-f0-9]+:    ff 25 bc 92 04 08       jmp    \*0x80492bc
20  +[a-f0-9]+:    68 00 00 00 00          push   \$0x0
21  +[a-f0-9]+:    e9 e0 ff ff ff          jmp    80481c0 <.plt>
22
23 Disassembly of section .plt.got:
24
25 0+80481e0 <fn2@plt>:
26  +[a-f0-9]+:    ff 25 ac 92 04 08       jmp    \*0x80492ac
27  +[a-f0-9]+:    66 90                   xchg   %ax,%ax
28
29 Disassembly of section .text:
30
31 0+80481e8 <_start>:
32  +[a-f0-9]+:    e8 e3 ff ff ff          call   80481d0 <fn1@plt>
33  +[a-f0-9]+:    e8 ee ff ff ff          call   80481e0 <fn2@plt>
34  +[a-f0-9]+:    81 7c 24 04 d0 81 04 08         cmpl   \$0x80481d0,0x4\(%esp\)
35 #pass