RESOLVED FIXED 90099
x86 disassembler confuses immediates with addresses
https://bugs.webkit.org/show_bug.cgi?id=90099
Summary x86 disassembler confuses immediates with addresses
Filip Pizlo
Reported 2012-06-27 14:35:09 PDT
Consider the two following x86 instructions, written out verbosely: 1) load from address 0x12345 into register RAX 2) move immediate 0x12345 into register RAX In AT&T syntax, the two should be written thus: 1) mov 0x12345, %rax 2) mov $0x12345, %rax But our x86 disassembler (udis86) incorrectly writes both as "mov 0x12345, %rax". In short, it omits the "$" prefix for immediates.
Attachments
the patch (1.35 KB, patch)
2012-06-27 14:37 PDT, Filip Pizlo
mhahnenberg: review+
Filip Pizlo
Comment 1 2012-06-27 14:37:32 PDT
Created attachment 149797 [details] the patch
WebKit Review Bot
Comment 2 2012-06-27 14:41:02 PDT
Attachment 149797 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1 Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:112: Extra space after ( in function call [whitespace/parens] [4] Source/JavaScriptCore/disassembler/udis86/udis86_syn-att.c:112: Extra space before ) [whitespace/parens] [2] Total errors found: 2 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Hahnenberg
Comment 3 2012-06-27 14:44:08 PDT
Comment on attachment 149797 [details] the patch r=me
Filip Pizlo
Comment 4 2012-06-27 14:45:46 PDT
Note You need to log in before you can comment on or make changes to this bug.