Joe Hendrix
95f7fd7db7
Add limited global address checking for jump table bounds check.
...
This also fixes a bug in extendDyn and gets better jump table coverage.
2020-11-06 14:37:13 -08:00
Joe Hendrix
5f5de06e70
Remove unused constraint on MemAddr instance.
2020-11-06 14:37:13 -08:00
Joe Hendrix
22a9104faa
Various cleanups.
...
Consolidate three different checks that control when to explore
a function into a single one defined in exploreFunPred.
Modify noreturn function calls to not treat the return address
as a potential function entry point.
Add basic checking of LSDA address to compare-dwarfdump.
Minor code refactoring and submodule updates.
2020-11-06 14:37:13 -08:00
Joe Hendrix
9ff7e351f0
Fix typo
2020-11-06 14:35:06 -08:00
Joe Hendrix
98b69d992c
Add compare-dwarfdump
2020-11-06 14:35:06 -08:00
Joe Hendrix
9203a37b94
Minor cleanups; dwarf updates
2020-11-06 14:35:06 -08:00
Joe Hendrix
b180145002
Generalize symbol resolver to support low-level elf-edit functions.
2020-11-06 14:29:04 -08:00
Joe Hendrix
79857a59ff
Fix warnings and ensure travis uses werror on some packages.
2020-11-06 14:27:36 -08:00
Joe Hendrix
42f7a43b32
Update dwarf parsing to increase laziness and robustness.
2020-11-06 14:27:36 -08:00
Joe Hendrix
a276dbaea4
Update to work with latest elf-edit.
2020-11-06 14:01:04 -08:00
Joe Hendrix
f2c0f00075
Allow functions to be explicitly marked as no-return.
2020-11-06 14:01:04 -08:00
Joe Hendrix
ab2bf08946
Merge subprograms with abstract origin.
2020-11-06 14:01:04 -08:00
Joe Hendrix
402f99071f
Fix warnings and ensure travis uses werror on some packages.
2020-11-06 13:58:39 -08:00
Joe Hendrix
cbd16ed481
Update dwarf parsing to increase laziness and robustness.
2020-11-06 13:56:37 -08:00
Joe Hendrix
c9218a9284
Fix undefined MkTuple typeRepr
2020-11-06 13:48:26 -08:00
Joe Hendrix
da3d43d805
Update elf-edit; export additional capabilities for Reopt.
...
This adds a mechanism for filtering out function addressses. Used by
Reopt for the PLT table.
2020-11-06 13:48:26 -08:00
Joe Hendrix
c356694627
Update to work with latest elf-edit.
2020-11-06 13:48:26 -08:00
Joe Hendrix
1510c247e3
Add MkTuple primitive.
2020-11-06 13:02:09 -08:00
Jared Weakly
b8eb2e0e8a
Merge pull request #171 from GaloisInc/lisanna/ci-init-8.10.2
...
Init CI for 8.10.2
2020-11-05 14:30:00 -08:00
Lisanna Dettwyler
e4b4ba26cf
Merge remote-tracking branch 'origin/master' into lisanna/ci-init-8.10.2
2020-11-04 11:20:56 -08:00
Tristan Ravitch
37861df8c7
Support for mixed ARM/Thumb binaries ( #174 )
...
aarch32: Support mixed ARM/Thumb1 binaries
This updates the aarch32 backend to decode Thumb instructions and generate the Thumb semantics. The major implementation change is to use the `ArchBlockPrecond` feature of macaw to track the Thumb state (`PSTATE_T`) across block boundaries.
The ARM code discovery decides whether or not a function entry point should be decoded as Thumb by examining the low bit of the function address. If the low bit is set, it is a Thumb entry point. This has the slightly odd effect of causing macaw to say that the function is at the address with the low bit set, which is not technically true. This is documented in the README, but not obvious on inspection. Most use cases should not care, and can in any case account for it. In the future, it should be possible to fix this (though it will require some changes to the core of macaw).
2020-11-02 12:48:01 -08:00
Daniel Matichuk
a1c3e4e099
Merge pull request #158 from GaloisInc/memgen
...
macaw-symbolic: Support alternative memory models in ArchInfo
2020-10-28 14:12:33 -07:00
Daniel Matichuk
adeeac988a
Merge branch 'master' into memgen
2020-10-28 10:47:21 -07:00
Daniel Matichuk
7154518da5
Merge pull request #170 from GaloisInc/thfix
...
compatibility fix for template-haskell-2.16
2020-10-22 12:02:06 -07:00
Daniel Matichuk
e02ecdb89e
Merge branch 'master' into thfix
2020-10-21 10:59:03 -07:00
Lisanna Dettwyler
906cef407d
Merge remote-tracking branch 'origin/master' into lisanna/ci-init-8.10.2
2020-10-21 10:20:04 -07:00
Kevin Quick
e7c9d2ea00
Merge pull request #172 from GaloisInc/redundant_unpack_cases
...
Extract single Assignment element without redundant pattern case
2020-10-21 10:00:16 -07:00
Kevin Quick
7d497c1f46
Merge branch 'master' into redundant_unpack_cases
2020-10-21 09:59:34 -07:00
LisannaAtGalois
5adf154a62
Merge pull request #168 from GaloisInc/lisanna/ci-more-ghc
...
Init 8.6.5 testing
2020-10-21 09:40:18 -07:00
Kevin Quick
923089d767
Extract single Assignment element without redundant pattern case
2020-10-20 21:09:15 -07:00
Lisanna Dettwyler
31c2217a9d
Annotate known issues
2020-10-20 14:08:36 -07:00
Lisanna Dettwyler
47544e4b2d
Fix warnings in GHC 8.10
2020-10-20 13:53:22 -07:00
Lisanna Dettwyler
e12f71e5be
Init CI for 8.10.2
2020-10-20 13:53:09 -07:00
Lisanna Dettwyler
a5f11c114d
remove 8.10
2020-10-20 13:44:37 -07:00
Lisanna Dettwyler
a38ec82fda
Remove 8.10 from this PR
2020-10-20 13:44:37 -07:00
Lisanna Dettwyler
f0790505cc
Invalidate cabal cache when dependencies change
2020-10-20 13:44:37 -07:00
Lisanna Dettwyler
66c41039a6
Init [8.6.5 8.10.1] testing
2020-10-20 13:44:37 -07:00
LisannaAtGalois
5a22913f2a
Merge pull request #169 from GaloisInc/lisanna/gha-dep-fns
...
Replace deprecated GitHub Actions functions
2020-10-19 14:13:12 -07:00
Daniel Matichuk
c8d057b715
compatibility fix for template-haskell-2.16
...
See: https://gitlab.haskell.org/ghc/ghc/-/issues/15843
2020-10-15 16:32:46 -07:00
Lisanna Dettwyler
5ca4f4e501
Replace deprecated GitHub Actions functions
2020-10-15 09:56:29 -07:00
Sam Breese
3a071e317b
symbolic: Fix PackBits and UnpackBits ( #166 )
2020-10-12 14:20:05 -04:00
Sam Breese
34e7394c14
x86: Implement semantics for a few instructions ( #167 )
...
* x86: Add aesenc, aesenclast, aesdec, aesdeclast
* x86: Add vpcmpgtd
* WIP
* Implement Pshufb
* Fix AESNI_AESEncLast.
* Fix PtCmpGt.
* Refactor AESNI instructions a bit
* Finish refactoring
* Forgot MultiWayIf
* Reduce duplication a bit
* Address comments
Co-authored-by: Andrei Stefanescu <andrei@stefanescu.io>
2020-10-08 19:37:17 -04:00
Sam Breese
5fdfdb2eaa
x86: Add some entries to the export list of Data.Macaw.X86 ( #164 )
2020-10-08 18:25:30 -04:00
Sam Breese
00d8530255
symbolic: Add special cases for null pointers in doPtrEq ( #165 )
2020-10-08 14:38:46 -04:00
Daniel Matichuk
11ceebb592
more haddock fixes
2020-10-06 16:52:21 -07:00
Daniel Matichuk
aab0010d0a
more haddock fixes
2020-10-06 14:57:43 -07:00
Daniel Matichuk
a595bdc6a4
fix haddocks
2020-10-06 11:20:59 -07:00
Daniel Matichuk
3765c5eaab
remove 'constraints' dependency
2020-10-06 11:20:40 -07:00
Daniel Matichuk
8f9ee8624e
fixup GenArchInfo instance
2020-10-05 12:54:22 -07:00
Daniel Matichuk
d0349a7af3
Merge remote-tracking branch 'origin/master' into memgen
2020-10-05 12:41:36 -07:00