[Bug binutils/19661] [libopcodes] [x86] Lock prefixes are allowed even when they SIGILL
https://sourceware.org/bugzilla/show_bug.cgi?id=19661 H.J. Lu changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |WONTFIX --- Comment #3 from H.J. Lu --- (In reply to njholcomb from comment #2) > Created attachment 9202 [details] > File displays locking without a memory operand. > > objdump -d lock_no_mem.o > > lock_no_mem.o: file format elf64-x86-64 > > > Disassembly of section .text: > > : >0: 55 push %rbp >1: 48 89 e5mov%rsp,%rbp >4: f0 b7 9flock mov $0x9f,%bh >7: 96 xchg %eax,%esi >8: 00 00 add%al,(%rax) >a: 00 b8 00 00 00 00 add%bh,0x0(%rax) > 10: 5d pop%rbp > 11: c3 retq It looks OK to me. You get UD because LOCK prefix is used on non-memory operand: (gdb) disass Dump of assembler code for function main: 0x00400488 <+0>: push %rbp 0x00400489 <+1>: mov%rsp,%rbp => 0x0040048c <+4>: lock mov $0x9f,%bh 0x0040048f <+7>: xchg %eax,%esi 0x00400490 <+8>: add%al,(%rax) 0x00400492 <+10>:add%bh,0x0(%rax) 0x00400498 <+16>:pop%rbp 0x00400499 <+17>:retq End of assembler dump. (gdb) -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/19661] [libopcodes] [x86] Lock prefixes are allowed even when they SIGILL
https://sourceware.org/bugzilla/show_bug.cgi?id=19661 --- Comment #2 from njholcomb at wi dot rr.com --- Created attachment 9202 --> https://sourceware.org/bugzilla/attachment.cgi?id=9202=edit File displays locking without a memory operand. objdump -d lock_no_mem.o lock_no_mem.o: file format elf64-x86-64 Disassembly of section .text: : 0: 55 push %rbp 1: 48 89 e5mov%rsp,%rbp 4: f0 b7 9flock mov $0x9f,%bh 7: 96 xchg %eax,%esi 8: 00 00 add%al,(%rax) a: 00 b8 00 00 00 00 add%bh,0x0(%rax) 10: 5d pop%rbp 11: c3 retq -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/19661] [libopcodes] [x86] Lock prefixes are allowed even when they SIGILL
https://sourceware.org/bugzilla/show_bug.cgi?id=19661 H.J. Lu changed: What|Removed |Added Status|NEW |WAITING CC||hjl.tools at gmail dot com --- Comment #1 from H.J. Lu --- Please provide an ELF object file as the input for "objdump -d". -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils