mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
36938cabf0
"Unambiguous" is is in particular taking as reference the assembler, which also accepts certain insns - despite them allowing for varying operand size, and hence in principle being ambiguous - without any suffix. For example, from the very beginning of the life of x86-64 I had trouble understanding why a plain and simple RET had to be printed as RETQ. In case someone really used the 16-bit form, RETW disambiguates the two quite fine.
37 lines
1.0 KiB
Makefile
37 lines
1.0 KiB
Makefile
#source: ifunc-2-local-i386.s
|
|
#ld: -z now -m elf_i386 -shared --hash-style=sysv -z noseparate-code
|
|
#as: --32
|
|
#objdump: -dw
|
|
#target: x86_64-*-* i?86-*-*
|
|
#notarget: *-*-lynxos *-*-nto*
|
|
|
|
.*: +file format .*
|
|
|
|
|
|
Disassembly of section .plt:
|
|
|
|
0+e0 <.plt>:
|
|
+[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 <.plt>
|
|
|
|
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]+: 8d 83 4c ef ff ff lea -0x10b4\(%ebx\),%eax
|
|
+[a-f0-9]+: c3 ret
|
|
#pass
|