summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc/ifunc-2-local-i386-now.d
blob: 739058b5ca46f78610c5b06a2eff65375a0e95b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#source: ifunc-2-local-i386.s
#ld: -z now -m elf_i386 -shared --hash-style=sysv -z noseparate-code $NO_DT_RELR_LDFLAGS
#as: --32
#objdump: -dw
#target: x86_64-*-* i?86-*-*
#notarget: *-*-lynxos *-*-nto*

.*: +file format .*


Disassembly of section .plt:

0+e0 <\*ABS\*@plt-0x10>:
 +[a-f0-9]+:	ff b3 04 00 00 00    	push   0x4\(%ebx\)
 +[a-f0-9]+:	ff a3 08 00 00 00    	jmp    \*0x8\(%ebx\)
 +[a-f0-9]+:	00 00                	add    %al,\(%eax\)
	...

0+f0 <\*ABS\*@plt>:
 +[a-f0-9]+:	ff a3 0c 00 00 00    	jmp    \*0xc\(%ebx\)
 +[a-f0-9]+:	68 00 00 00 00       	push   \$0x0
 +[a-f0-9]+:	e9 e0 ff ff ff       	jmp    e0 <\*ABS\*@plt-0x10>

Disassembly of section .text:

0+100 <__GI_foo>:
 +[a-f0-9]+:	c3                   	ret    

0+101 <bar>:
 +[a-f0-9]+:	e8 00 00 00 00       	call   106 <bar\+0x5>
 +[a-f0-9]+:	5b                   	pop    %ebx
 +[a-f0-9]+:	81 c3 9e 10 00 00    	add    \$0x109e,%ebx
 +[a-f0-9]+:	e8 de ff ff ff       	call   f0 <\*ABS\*@plt>
 +[a-f0-9]+:	8b 83 0c 00 00 00    	mov    0xc\(%ebx\),%eax
 +[a-f0-9]+:	c3                   	ret    
#pass