2017-10-07 00:16:47 +00:00
|
|
|
#source: ifunc-2-local-i386.s
|
2018-12-28 15:25:28 +00:00
|
|
|
#ld: -z now -m elf_i386 -shared --hash-style=sysv -z noseparate-code
|
2017-10-07 00:16:47 +00:00
|
|
|
#as: --32
|
|
|
|
#objdump: -dw
|
|
|
|
#target: x86_64-*-* i?86-*-*
|
2021-03-21 00:09:18 +00:00
|
|
|
#notarget: *-*-lynxos *-*-nto*
|
2017-10-07 00:16:47 +00:00
|
|
|
|
|
|
|
.*: +file format .*
|
|
|
|
|
|
|
|
|
|
|
|
Disassembly of section .plt:
|
|
|
|
|
2018-12-28 15:25:28 +00:00
|
|
|
0+e0 <.plt>:
|
2021-03-21 00:09:18 +00:00
|
|
|
+[a-f0-9]+: ff b3 04 00 00 00 push 0x4\(%ebx\)
|
2017-10-07 00:16:47 +00:00
|
|
|
+[a-f0-9]+: ff a3 08 00 00 00 jmp \*0x8\(%ebx\)
|
|
|
|
+[a-f0-9]+: 00 00 add %al,\(%eax\)
|
|
|
|
...
|
|
|
|
|
2018-12-28 15:25:28 +00:00
|
|
|
0+f0 <\*ABS\*@plt>:
|
2017-10-07 00:16:47 +00:00
|
|
|
+[a-f0-9]+: ff a3 0c 00 00 00 jmp \*0xc\(%ebx\)
|
|
|
|
+[a-f0-9]+: 68 00 00 00 00 push \$0x0
|
2018-12-28 15:25:28 +00:00
|
|
|
+[a-f0-9]+: e9 e0 ff ff ff jmp e0 <.plt>
|
2017-10-07 00:16:47 +00:00
|
|
|
|
|
|
|
Disassembly of section .text:
|
|
|
|
|
2018-12-28 15:25:28 +00:00
|
|
|
0+100 <__GI_foo>:
|
2017-10-07 00:16:47 +00:00
|
|
|
+[a-f0-9]+: c3 ret
|
|
|
|
|
2018-12-28 15:25:28 +00:00
|
|
|
0+101 <bar>:
|
|
|
|
+[a-f0-9]+: e8 00 00 00 00 call 106 <bar\+0x5>
|
2017-10-07 00:16:47 +00:00
|
|
|
+[a-f0-9]+: 5b pop %ebx
|
|
|
|
+[a-f0-9]+: 81 c3 9e 10 00 00 add \$0x109e,%ebx
|
2018-12-28 15:25:28 +00:00
|
|
|
+[a-f0-9]+: e8 de ff ff ff call f0 <\*ABS\*@plt>
|
2017-10-07 00:16:47 +00:00
|
|
|
+[a-f0-9]+: 8d 83 4c ef ff ff lea -0x10b4\(%ebx\),%eax
|
|
|
|
+[a-f0-9]+: c3 ret
|
|
|
|
#pass
|