39 Commits

Author SHA1 Message Date
null-cell 796d0c0f35 cleanup and formatting 2023-03-28 14:09:12 +02:00
null-cell d1eee1b6b1 adds support for relaxation, compression, code cleanup 2023-03-28 12:01:25 +02:00
null-cell 6efbce1a7a fixes FeatureBitset implemetation 2023-03-27 13:48:54 +02:00
null-cell 8700fab143 adds correct ABI selection for RISCV 2023-03-27 12:33:14 +02:00
null-cell d026e349d3 fixes runtime errors, first clean build that runs kstool correctly 2023-03-21 15:24:30 +01:00
null-cell 0dd179e142 compiles without errors 2023-03-21 10:30:56 +01:00
null-cell fca8bdd04b fixes most errors with FeatureBitset, bugfixes 2023-03-20 20:08:53 +01:00
null-cell e32e4aed6c port write statements, fix applyFixup and adjustFixupValue, bugfix 2023-03-20 11:02:36 +01:00
null-cell 7563c9fa50 adds RISCV e-flags and backports writeNopData 2023-03-17 14:33:54 +01:00
null-cell 6b207adbeb overloads applyFixup with RISCV definition and extends KsError 2023-03-17 13:23:10 +01:00
null-cell c2e56b3f72 pruned RISCV.h, adds .inc files and fixes createRISCVELFObjectWriter 2023-03-17 13:19:28 +01:00
null-cell b45b16a725 edits config to support RISCV - known from v4 2023-03-16 17:29:33 +01:00
Ta Thanh Dinh 6a444fc633 fix gcc's memaccess warning (#373) 2018-09-11 21:48:54 +08:00
Peter Matula 1815d79beb rename namespace "llvm" to "llvm_ks" (#333)
This prevents symbol collisions when the Keystone library is linked with the LLVM libraries.

Renaming was done by the following repository-wide substitutions:
* `namespace llvm` -> `namespace llvm_ks`
* `llvm::` -> `llvm_ks::`
2018-01-23 11:29:52 +08:00
Jatin Kataria c513bef6f2 added support to get current fragment size in the streamer interface. This fixes the address update issue in case of directive emitting values in between instructions and breaking the follow up relative jumps 2017-01-16 16:53:50 -05:00
Nguyen Anh Quynh 7623db887d support symbol resolving at run-time by adding new setup option KS_OPT_SYM_RESOLVER. see issue #244 2016-10-02 13:54:37 +08:00
Nguyen Anh Quynh eac9cc9d67 support new syntax RADIX16. see issue #11 2016-09-10 02:04:54 +08:00
Nguyen Anh Quynh eabf8a7434 fix issue #148 2016-06-05 18:19:13 +08:00
Nguyen Anh Quynh 1dc1e88a50 x86: fix issue #149 2016-06-05 15:36:21 +08:00
Nguyen Anh Quynh 4ea8d32d55 x86: fix issue #170 2016-06-05 14:02:42 +08:00
Nguyen Anh Quynh 834b08c374 x86: fix #157 & #160 by propagating error back to ks_asm() 2016-06-04 01:14:03 +08:00
Nguyen Anh Quynh 54685282e7 do boundary check for MCContext::Instances[]. this fixes crash-01-x64-empty-tombstone-value-shouldnt-be-inserted-into-map.c 2016-06-03 01:12:38 +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 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
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