mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +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.
35 lines
928 B
Plaintext
35 lines
928 B
Plaintext
#source: plt2.s
|
|
#as: --32
|
|
#ld: -z now -melf_i386
|
|
#objdump: -dwr
|
|
#target: i?86-*-*
|
|
|
|
.*: +file format .*
|
|
|
|
|
|
Disassembly of section .plt:
|
|
|
|
0+8048160 <.plt>:
|
|
+[a-f0-9]+: ff 35 40 92 04 08 push 0x8049240
|
|
+[a-f0-9]+: ff 25 44 92 04 08 jmp \*0x8049244
|
|
+[a-f0-9]+: 00 00 add %al,\(%eax\)
|
|
...
|
|
|
|
0+8048170 <fn1@plt>:
|
|
+[a-f0-9]+: ff 25 48 92 04 08 jmp \*0x8049248
|
|
+[a-f0-9]+: 68 00 00 00 00 push \$0x0
|
|
+[a-f0-9]+: e9 e0 ff ff ff jmp 8048160 <.plt>
|
|
|
|
0+8048180 <fn2@plt>:
|
|
+[a-f0-9]+: ff 25 4c 92 04 08 jmp \*0x804924c
|
|
+[a-f0-9]+: 68 08 00 00 00 push \$0x8
|
|
+[a-f0-9]+: e9 d0 ff ff ff jmp 8048160 <.plt>
|
|
|
|
Disassembly of section .text:
|
|
|
|
0+8048190 <_start>:
|
|
+[a-f0-9]+: e8 db ff ff ff call 8048170 <fn1@plt>
|
|
+[a-f0-9]+: e8 e6 ff ff ff call 8048180 <fn2@plt>
|
|
+[a-f0-9]+: 81 7c 24 04 70 81 04 08 cmpl \$0x8048170,0x4\(%esp\)
|
|
#pass
|