[...@gnu-6 lrb]$ cat s.s mov 0xFEE000F0,%eax mov 0xFEE000F0,%ebx [...@gnu-6 lrb]$ gcc -c s.s [...@gnu-6 lrb]$ objdump -dw s.o
s.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000 <.text>: 0: 8b 04 25 f0 00 e0 fe mov 0xfffffffffee000f0,%eax 7: 8b 1c 25 f0 00 e0 fe mov 0xfffffffffee000f0,%ebx [...@gnu-6 lrb]$ Since the displacement is signed extended to 64bit, we need to handle it properly. -- Summary: x86-64 assembler misassemble 32bit absolute address Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gas AssignedTo: unassigned at sources dot redhat dot com ReportedBy: hjl dot tools at gmail dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10636 ------- 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