22 Commits

Author SHA1 Message Date
Nguyen Anh Quynh 8fa420390e Merge branch 'master' into cleanup 2016-06-02 00:31:25 +08:00
Nguyen Anh Quynh 070b5add69 x86: fix crash-21-x64-llvm-error-expected-absolute-expression.c 2016-05-31 15:08:32 +08:00
Nguyen Anh Quynh 499f78265e handle error in peekTok(). this fixes c-crashes/crash-04-hexagon-readcount-not-equal-to-one.c 2016-05-31 00:43:35 +08:00
Nguyen Anh Quynh 64bea08278 x86: propagate error to ks_asm() to fix some testcases in c-crashes 2016-05-30 21:55:50 +08:00
Nguyen Anh Quynh 40263ed68f fix merging conflicts 2016-05-30 11:31:01 +08:00
Nguyen Anh Quynh 63317d5757 handle equal directive. this fixes c-crashes/crash-12-x64-cannot-set-a-variable-that-has-already-been-used.c 2016-05-30 01:52:44 +08:00
Nguyen Anh Quynh 6eb7703b3c handle error in applyFixup(). this fixes c-crashes/crash-23-x64-value-does-not-fit-in-the-fixup-field.c 2016-05-30 00:55:46 +08:00
Nguyen Anh Quynh e644380b1b handle parser error in getIntVal(), getAPIntVal() & Lex(). this fixes some crashes in c-crashes 2016-05-30 00:04:26 +08:00
Nguyen Anh Quynh 993edf92be handle error of EmitIntValue() to fix some ARM assertation bugs 2016-05-29 10:57:02 +08:00
Ingmar Steen da1737b356 Remove ObjectFormat from Triple. 2016-05-23 15:05:02 +02:00
Ingmar Steen ca572dfc27 Remove Macho-O/Darwin code. 2016-05-23 15:05:02 +02:00
Ingmar Steen 418dcaf5c8 Remove COFF code. 2016-05-23 15:05:02 +02:00
Nguyen Anh Quynh f719c95bee remove assert() from AsmToken::getStringContents() 2016-05-22 19:03:54 +08:00
Nguyen Anh Quynh 3955891035 propagate error from encodeInstruction() back to ks_asm(). this fixes an issue in #9 2016-05-22 16:32:28 +08:00
Nguyen Anh Quynh fbea39ccd7 propagate the error of missing symbol back to ks_asm(). this adds new error code KS_ERR_ASM_SYMBOL_NOTFOUND. fix issue #61 2016-05-18 01:56:02 +08:00
Ingmar Steen 4bbe172aad Implement and test NASM default rel/abs directives 2016-05-14 10:45:06 +02:00
Ingmar Steen 3efea29173 Fix absolute symbol addresses.
By adding BaseAddress to MCContext, passing it from ks_asm and using it
to initialise the address of the first fragment we make sure that
symbols get the right absolute offset.
2016-05-12 20:33:09 +02:00
Nguyen Anh Quynh 27b03a29ad x86: ';' is now considered comment until EOL 2016-05-07 21:21:14 +08:00
Nguyen Anh Quynh 68e3ed8802 x86: support for NASM directive in db/dw/dd/dq 2016-05-07 17:53:29 +08:00
Nguyen Anh Quynh 104b1836a8 x86: fix issue #5 for AT&T syntax 2016-05-04 00:36:03 +08:00
Nguyen Anh Quynh bf695283e0 x86: initial support for NASM syntax 2016-04-30 17:54:01 +08:00
Nguyen Anh Quynh 9f1a353f68 import 2016-04-28 21:06:49 +08:00