Skip to content

Commit 69e080e

Browse files
authored
Ghidra 11.1 (#268)
ZLIB is now a requirement for compressed sleigh files
1 parent 4110ce8 commit 69e080e

File tree

12 files changed

+96
-102
lines changed

12 files changed

+96
-102
lines changed

CMakeLists.txt

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ set(public_include_header_list
139139
"${library_root}/modelrules.hh"
140140
"${library_root}/signature.hh"
141141
"${library_root}/signature_ghidra.hh"
142+
"${library_root}/compression.hh"
143+
"${library_root}/multiprecision.hh"
144+
"${library_root}/slaformat.hh"
142145
)
143-
if(sleigh_RELEASE_IS_HEAD)
144-
list(APPEND public_include_header_list
145-
"${library_root}/compression.hh"
146-
"${library_root}/multiprecision.hh"
147-
"${library_root}/slaformat.hh"
148-
)
149-
endif()
146+
# if(sleigh_RELEASE_IS_HEAD)
147+
# list(APPEND public_include_header_list
148+
# )
149+
# endif()
150150
# Create custom target so that IDEs know these files are part of the sources
151151
add_custom_target(sleigh_all_headers SOURCES ${public_include_header_list})
152152
set(public_headers_dir ${CMAKE_CURRENT_BINARY_DIR}/include)
@@ -162,9 +162,7 @@ endforeach()
162162
configure_file(cmake/libconfig.h.in "${public_headers_dir}/sleigh/libconfig.h")
163163

164164
# External Dependencies
165-
if(sleigh_RELEASE_IS_HEAD)
166-
find_package(ZLIB REQUIRED)
167-
endif()
165+
find_package(ZLIB REQUIRED)
168166

169167
#
170168
# sla
@@ -198,9 +196,7 @@ set_target_properties(sleigh_sla PROPERTIES
198196
OUTPUT_NAME_DEBUG sla_dbg
199197
)
200198

201-
if(sleigh_RELEASE_IS_HEAD)
202-
target_link_libraries(sleigh_sla PUBLIC ZLIB::ZLIB)
203-
endif()
199+
target_link_libraries(sleigh_sla PUBLIC ZLIB::ZLIB)
204200

205201
#
206202
# decomp
@@ -229,9 +225,7 @@ set_target_properties(sleigh_decomp PROPERTIES
229225
OUTPUT_NAME_DEBUG decomp_dbg
230226
)
231227

232-
if(sleigh_RELEASE_IS_HEAD)
233-
target_link_libraries(sleigh_decomp PUBLIC ZLIB::ZLIB)
234-
endif()
228+
target_link_libraries(sleigh_decomp PUBLIC ZLIB::ZLIB)
235229

236230
# This is the root directory where all individual processor spec file directories will be created.
237231
# NOTE: Needs to be defined here before the install rules

cmake/install-config.cmake.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717

1818
# Extra version details. Either 'stable' or 'HEAD'
1919
set(sleigh_RELEASE_IS_HEAD "@sleigh_RELEASE_IS_HEAD@")
20-
if(sleigh_RELEASE_IS_HEAD)
21-
include(CMakeFindDependencyMacro)
22-
find_dependency(ZLIB)
23-
endif()
20+
21+
include(CMakeFindDependencyMacro)
22+
find_dependency(ZLIB)
2423

2524
include("${CMAKE_CURRENT_LIST_DIR}/sleighTargets.cmake")
2625

extra-tools/sleigh-lift/src/main.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,9 @@ int main(int argc, char *argv[]) {
265265
ghidra::ContextInternal ctx;
266266
ghidra::Sleigh engine(&load_image, &ctx);
267267
ghidra::DocumentStorage storage;
268-
#ifdef sleigh_RELEASE_IS_HEAD
269268
std::istringstream sla("<sleigh>" + sla_file_path->string() + "</sleigh>");
270269
ghidra::Element *root =
271270
storage.parseDocument(sla)->getRoot();
272-
#else
273-
ghidra::Element *root =
274-
storage.openDocument(sla_file_path->string())->getRoot();
275-
#endif
276271
storage.registerTag(root);
277272
std::optional<std::filesystem::path> pspec_file_path;
278273
if (args->pspec_file_name) {

src/patches/stable/0001-Fix-UBSAN-errors-in-decompiler.patch

Lines changed: 27 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
From 0e437cb96249306d17f26ff6614871ecd9b37359 Mon Sep 17 00:00:00 2001
2-
From: "github-actions[bot]"
3-
<41898282+github-actions[bot]@users.noreply.github.com>
4-
Date: Wed, 2 Aug 2023 23:19:42 +1000
5-
Subject: [PATCH 1/2] Fix UBSAN errors in decompiler
1+
From 6c36965500d26d5a35dfbc91725956ae1d51e394 Mon Sep 17 00:00:00 2001
2+
From: Alex Cameron <[email protected]>
3+
Date: Mon, 5 Jun 2023 16:45:04 +1200
4+
Subject: [PATCH 1/5] Fix UBSAN errors in decompiler
65

76
---
87
.../Decompiler/src/decompile/cpp/fspec.cc | 8 ++++++--
@@ -14,16 +13,15 @@ Subject: [PATCH 1/2] Fix UBSAN errors in decompiler
1413
.../Decompiler/src/decompile/cpp/semantics.cc | 2 ++
1514
.../Decompiler/src/decompile/cpp/semantics.hh | 2 +-
1615
.../src/decompile/cpp/slgh_compile.cc | 2 +-
17-
.../Decompiler/src/decompile/cpp/slghsymbol.cc | 2 +-
1816
.../Decompiler/src/decompile/cpp/type.cc | 2 +-
1917
.../src/decompile/unittests/testfloatemu.cc | 2 +-
20-
12 files changed, 57 insertions(+), 21 deletions(-)
18+
11 files changed, 56 insertions(+), 20 deletions(-)
2119

2220
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/fspec.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/fspec.cc
23-
index 8380d3cd..a18d5007 100644
21+
index dc96f0c19..3482cf17c 100644
2422
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/fspec.cc
2523
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/fspec.cc
26-
@@ -2661,8 +2661,12 @@ void ProtoModelMerged::decode(Decoder &decoder)
24+
@@ -2727,8 +2727,12 @@ void ProtoModelMerged::decode(Decoder &decoder)
2725
modellist.push_back(mymodel);
2826
}
2927
decoder.closeElement(elemId);
@@ -39,7 +37,7 @@ index 8380d3cd..a18d5007 100644
3937

4038
void ParameterBasic::setTypeLock(bool val)
4139
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/funcdata_varnode.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/funcdata_varnode.cc
42-
index f7781707..283d81c3 100644
40+
index fc094ee96..1f7e53ebe 100644
4341
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/funcdata_varnode.cc
4442
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/funcdata_varnode.cc
4543
@@ -503,7 +503,13 @@ void Funcdata::setHighLevel(void)
@@ -58,10 +56,10 @@ index f7781707..283d81c3 100644
5856
uint4 vnFlags = vn->getFlags() & (Varnode::directwrite|Varnode::addrforce);
5957

6058
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/op.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/op.cc
61-
index 0e3decc8..403ec35a 100644
59+
index 921335173..46cdc39f3 100644
6260
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/op.cc
6361
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/op.cc
64-
@@ -672,7 +672,11 @@ uintb PcodeOp::getNZMaskLocal(bool cliploop) const
62+
@@ -666,7 +666,11 @@ uintb PcodeOp::getNZMaskLocal(bool cliploop) const
6563
break;
6664
case CPUI_PIECE:
6765
resmask = getIn(0)->getNZMask();
@@ -75,10 +73,10 @@ index 0e3decc8..403ec35a 100644
7573
break;
7674
case CPUI_INT_MULT:
7775
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/opbehavior.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/opbehavior.cc
78-
index fcd75cc7..ed0e005a 100644
76+
index aebcfd910..6c47e6eb1 100644
7977
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/opbehavior.cc
8078
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/opbehavior.cc
81-
@@ -750,7 +750,13 @@ uintb OpBehaviorPiece::evaluateBinary(int4 sizeout,int4 sizein,uintb in1,uintb i
79+
@@ -746,7 +746,13 @@ uintb OpBehaviorPiece::evaluateBinary(int4 sizeout,int4 sizein,uintb in1,uintb i
8280
uintb OpBehaviorSubpiece::evaluateBinary(int4 sizeout,int4 sizein,uintb in1,uintb in2) const
8381

8482
{
@@ -94,7 +92,7 @@ index fcd75cc7..ed0e005a 100644
9492
}
9593

9694
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/pcodecompile.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/pcodecompile.cc
97-
index ca9d71ab..85d4dd28 100644
95+
index ca9d71ab9..85d4dd281 100644
9896
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/pcodecompile.cc
9997
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/pcodecompile.cc
10098
@@ -621,8 +621,10 @@ vector<OpTpl *> *PcodeCompile::assignBitRange(VarnodeTpl *vn,uint4 bitoffset,uin
@@ -137,7 +135,7 @@ index ca9d71ab..85d4dd28 100644
137135
return res;
138136
}
139137
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc
140-
index 4851365d..d069d1c9 100644
138+
index 3703c8ef5..ac6e21c00 100644
141139
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc
142140
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc
143141
@@ -976,7 +976,12 @@ int4 RulePullsubIndirect::applyOp(PcodeOp *op,Funcdata &data)
@@ -154,7 +152,7 @@ index 4851365d..d069d1c9 100644
154152
consume = ~consume;
155153
if ((consume & indir->getIn(0)->getConsume())!=0) return 0;
156154

157-
@@ -6782,8 +6787,9 @@ int4 RulePtrsubCharConstant::applyOp(PcodeOp *op,Funcdata &data)
155+
@@ -6803,8 +6808,9 @@ int4 RulePtrsubCharConstant::applyOp(PcodeOp *op,Funcdata &data)
158156
Varnode *sb = op->getIn(0);
159157
Datatype *sbType = sb->getTypeReadFacing(op);
160158
if (sbType->getMetatype() != TYPE_PTR) return 0;
@@ -166,7 +164,7 @@ index 4851365d..d069d1c9 100644
166164
Varnode *vn1 = op->getIn(1);
167165
if (!vn1->isConstant()) return 0;
168166
Varnode *outvn = op->getOut();
169-
@@ -8593,7 +8599,11 @@ int4 RuleSubvarSubpiece::applyOp(PcodeOp *op,Funcdata &data)
167+
@@ -8616,7 +8622,11 @@ int4 RuleSubvarSubpiece::applyOp(PcodeOp *op,Funcdata &data)
170168
Varnode *outvn = op->getOut();
171169
int4 flowsize = outvn->getSize();
172170
uintb mask = calc_mask( flowsize );
@@ -180,7 +178,7 @@ index 4851365d..d069d1c9 100644
180178
if (!aggressive) {
181179
if ((vn->getConsume() & mask) != vn->getConsume()) return 0;
182180
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/semantics.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/semantics.cc
183-
index 2e3531ea..42482be7 100644
181+
index cd9b9835b..8a4616c3b 100644
184182
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/semantics.cc
185183
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/semantics.cc
186184
@@ -22,6 +22,7 @@ ConstTpl::ConstTpl(const_type tp)
@@ -200,23 +198,23 @@ index 2e3531ea..42482be7 100644
200198

201199
bool ConstTpl::isConstSpace(void) const
202200
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/semantics.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/semantics.hh
203-
index 8e283dca..652600c1 100644
201+
index e0b069959..9117a45c7 100644
204202
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/semantics.hh
205203
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/semantics.hh
206-
@@ -48,7 +48,7 @@ private:
207-
static void printHandleSelector(ostream &s,v_field val);
208-
static v_field readHandleSelector(const string &name);
204+
@@ -47,7 +47,7 @@ class ConstTpl {
205+
uintb value_real;
206+
v_field select; // Which part of handle to use as constant
209207
public:
210208
- ConstTpl(void) { type = real; value_real = 0; }
211209
+ ConstTpl(void) { type = real; value_real = 0; select = v_space; }
212210
ConstTpl(const ConstTpl &op2) {
213211
type=op2.type; value=op2.value; value_real=op2.value_real; select=op2.select; }
214212
ConstTpl(const_type tp,uintb val);
215213
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc
216-
index b40f7438..3c37958d 100644
214+
index c060053bf..c9004023c 100644
217215
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc
218216
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc
219-
@@ -2163,8 +2163,8 @@ string SleighCompile::checkSymbols(SymbolScope *scope)
217+
@@ -2164,8 +2164,8 @@ string SleighCompile::checkSymbols(SymbolScope *scope)
220218
ostringstream msg;
221219
SymbolTree::const_iterator iter;
222220
for(iter=scope->begin();iter!=scope->end();++iter) {
@@ -226,24 +224,11 @@ index b40f7438..3c37958d 100644
226224
if (sym->getRefCount() == 0)
227225
msg << " Label <" << sym->getName() << "> was placed but not used" << endl;
228226
else if (!sym->isPlaced())
229-
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/slghsymbol.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/slghsymbol.cc
230-
index b308e1b7..af2982ae 100644
231-
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/slghsymbol.cc
232-
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/slghsymbol.cc
233-
@@ -2569,7 +2569,7 @@ void ContextOp::restoreXml(const Element *el,SleighBase *trans)
234-
const List &list(el->getChildren());
235-
List::const_iterator iter;
236-
iter = list.begin();
237-
- patexp = (PatternValue *)PatternExpression::restoreExpression(*iter,trans);
238-
+ patexp = PatternExpression::restoreExpression(*iter,trans);
239-
patexp->layClaim();
240-
}
241-
242227
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/type.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/type.cc
243-
index 30faf0b6..e76a0619 100644
228+
index e6292e138..bd31b7470 100644
244229
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/type.cc
245230
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/type.cc
246-
@@ -3359,8 +3359,8 @@ void TypeFactory::recalcPointerSubmeta(Datatype *base,sub_metatype sub)
231+
@@ -3561,8 +3561,8 @@ void TypeFactory::recalcPointerSubmeta(Datatype *base,sub_metatype sub)
247232
top.submeta = sub; // Search on the incorrect submeta
248233
iter = tree.lower_bound(&top);
249234
while(iter != tree.end()) {
@@ -254,7 +239,7 @@ index 30faf0b6..e76a0619 100644
254239
++iter;
255240
if (ptr->submeta == sub) {
256241
diff --git a/Ghidra/Features/Decompiler/src/decompile/unittests/testfloatemu.cc b/Ghidra/Features/Decompiler/src/decompile/unittests/testfloatemu.cc
257-
index c35bde87..061e5367 100644
242+
index c35bde877..061e53677 100644
258243
--- a/Ghidra/Features/Decompiler/src/decompile/unittests/testfloatemu.cc
259244
+++ b/Ghidra/Features/Decompiler/src/decompile/unittests/testfloatemu.cc
260245
@@ -346,7 +346,7 @@ TEST(float_opTrunc_to_int) {
@@ -267,5 +252,5 @@ index c35bde87..061e5367 100644
267252
uintb true_result = ((uintb)(int32_t)f) & 0xffffffff;
268253
uintb encoding = format.getEncoding(f);
269254
--
270-
2.39.2 (Apple Git-143)
255+
2.44.0
271256

src/patches/stable/0002-Use-stroull-instead-of-stroul-to-parse-address-offse.patch

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
From 95f230f46bdb95aa4aab7f5d320691f87107fb36 Mon Sep 17 00:00:00 2001
2-
From: "github-actions[bot]"
3-
<41898282+github-actions[bot]@users.noreply.github.com>
4-
Date: Wed, 2 Aug 2023 23:20:14 +1000
5-
Subject: [PATCH 2/2] Use `stroull` instead of `stroul` to parse address
1+
From 290b06621c7a8c32c1470d16dbd8740876d57640 Mon Sep 17 00:00:00 2001
2+
From: Alex Cameron <[email protected]>
3+
Date: Wed, 3 Aug 2022 20:01:18 +1000
4+
Subject: [PATCH 2/5] Use `stroull` instead of `stroul` to parse address
65
offsets
76

87
---
98
Ghidra/Features/Decompiler/src/decompile/cpp/space.cc | 7 ++++++-
109
1 file changed, 6 insertions(+), 1 deletion(-)
1110

1211
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/space.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/space.cc
13-
index bf4e1dc9..594b4583 100644
12+
index bda09fc94..d077ee375 100644
1413
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/space.cc
1514
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/space.cc
1615
@@ -16,6 +16,8 @@
@@ -22,7 +21,7 @@ index bf4e1dc9..594b4583 100644
2221
namespace ghidra {
2322

2423
AttributeId ATTRIB_BASE = AttributeId("base",89);
25-
@@ -290,7 +292,10 @@ uintb AddrSpace::read(const string &s,int4 &size) const
24+
@@ -274,7 +276,10 @@ uintb AddrSpace::read(const string &s,int4 &size) const
2625
}
2726
}
2827
catch(LowlevelError &err) { // Name doesn't exist
@@ -35,5 +34,5 @@ index bf4e1dc9..594b4583 100644
3534
enddata = (const char *) tmpdata;
3635
if (enddata - s.c_str() == s.size()) { // If no size or offset override
3736
--
38-
2.39.2 (Apple Git-143)
37+
2.44.0
3938

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From a7fc8b440ab58cb377460e11c7449488ff5abc96 Mon Sep 17 00:00:00 2001
2+
From: Eric Kilmer <[email protected]>
3+
Date: Sat, 30 Mar 2024 18:46:16 -0400
4+
Subject: [PATCH 5/5] Add missing index check to prevent errors in Windows
5+
6+
Not sure why this only appears when testing on Windows.
7+
---
8+
Ghidra/Features/Decompiler/src/decompile/cpp/ifacedecomp.cc | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/ifacedecomp.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/ifacedecomp.cc
12+
index ac94d261c..a76ad389b 100644
13+
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/ifacedecomp.cc
14+
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/ifacedecomp.cc
15+
@@ -1842,7 +1842,7 @@ void IfcProtooverride::execute(istream &s)
16+
s >> ws;
17+
Address callpoint(parse_machaddr(s,discard,*dcp->conf->types));
18+
int4 i;
19+
- for(i=0;dcp->fd->numCalls();++i)
20+
+ for(i=0;i<dcp->fd->numCalls();++i)
21+
if (dcp->fd->getCallSpecs(i)->getOp()->getAddr() == callpoint) break;
22+
if (i == dcp->fd->numCalls())
23+
throw IfaceExecutionError("No call is made at this address");
24+
--
25+
2.44.0
26+

src/setup-ghidra-source.cmake

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set_property(CACHE sleigh_RELEASE_TYPE PROPERTY STRINGS "stable" "HEAD")
2222
find_package(Git REQUIRED)
2323

2424
# Ghidra pinned stable version commit
25-
set(ghidra_version "11.0.3")
25+
set(ghidra_version "11.1")
2626
set(ghidra_git_tag "Ghidra_${ghidra_version}_build")
2727
set(ghidra_shallow TRUE)
2828

@@ -40,6 +40,7 @@ set(ghidra_patches
4040
"${GIT_EXECUTABLE}" am --ignore-space-change --ignore-whitespace --no-gpg-sign
4141
"${CMAKE_CURRENT_LIST_DIR}/patches/stable/0001-Fix-UBSAN-errors-in-decompiler.patch"
4242
"${CMAKE_CURRENT_LIST_DIR}/patches/stable/0002-Use-stroull-instead-of-stroul-to-parse-address-offse.patch"
43+
"${CMAKE_CURRENT_LIST_DIR}/patches/stable/0005-Add-missing-index-check-to-prevent-errors-in-Windows.patch"
4344
)
4445

4546
# Ghidra pinned commits used for pinning last known working HEAD commit
@@ -165,12 +166,12 @@ set(sleigh_deccore_source_list
165166
"${library_root}/unionresolve.cc"
166167
"${library_root}/modelrules.cc"
167168
"${library_root}/signature.cc"
169+
"${library_root}/multiprecision.cc"
168170
)
169-
if("${sleigh_RELEASE_TYPE}" STREQUAL "HEAD")
170-
list(APPEND sleigh_deccore_source_list
171-
"${library_root}/multiprecision.cc"
172-
)
173-
endif()
171+
# if("${sleigh_RELEASE_TYPE}" STREQUAL "HEAD")
172+
# list(APPEND sleigh_deccore_source_list
173+
# )
174+
# endif()
174175

175176
set(sleigh_extra_source_list
176177
"${library_root}/callgraph.cc"
@@ -199,13 +200,13 @@ set(sleigh_source_list
199200
"${library_root}/semantics.cc"
200201
"${library_root}/context.cc"
201202
"${library_root}/filemanage.cc"
203+
"${library_root}/slaformat.cc"
204+
"${library_root}/compression.cc"
202205
)
203-
if("${sleigh_RELEASE_TYPE}" STREQUAL "HEAD")
204-
list(APPEND sleigh_source_list
205-
"${library_root}/slaformat.cc"
206-
"${library_root}/compression.cc"
207-
)
208-
endif()
206+
# if("${sleigh_RELEASE_TYPE}" STREQUAL "HEAD")
207+
# list(APPEND sleigh_source_list
208+
# )
209+
# endif()
209210

210211
set(sleigh_ghidra_source_list
211212
"${library_root}/ghidra_arch.cc"

support/include/sleigh/libsleigh.hh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ namespace ghidra {
124124
#include <ghidra/modelrules.hh>
125125
#include <ghidra/signature.hh>
126126
#include <ghidra/signature_ghidra.hh>
127+
#include <ghidra/compression.hh>
128+
#include <ghidra/multiprecision.hh>
129+
#include <ghidra/slaformat.hh>
127130

128131
// #ifdef sleigh_RELEASE_IS_HEAD
129132
// #endif

0 commit comments

Comments
 (0)