------- Additional Comments From hjl at lucon dot org 2007-04-26 15:50 ------- I guess that the intend was for 8bit displacement, we use decimal and for 16/32bit displacement, we use hex. But we didn't do it correctly:
bash-3.1$ cat y.s mov 12(%rip), %eax mov 12(%r12), %eax bash-3.1$ gcc -c y.s bash-3.1$ objdump -d y.o y.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 <.text>: 0: 8b 05 0c 00 00 00 mov 12(%rip),%eax # 0x12 6: 41 8b 44 24 0c mov 0xc(%r12),%eax We can do one of 1. Use decimal on all 8bit displacements and hex on all 16/32bit displacement. 2. Use hex on all displacements. -- What |Removed |Added ---------------------------------------------------------------------------- Summary|We aren't consistent on |We aren't consistent on |displacement in x86 |displacement in x86 |disassembler |disassembler http://sourceware.org/bugzilla/show_bug.cgi?id=4430 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils