Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMPStaticAnalyzer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
SMPStaticAnalyzer
Commits
ad61db4c
Commit
ad61db4c
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
refactoring libirdb-elfdep. redoing library naming scheme
parent
184f3f01
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
SConscript.irdb_lib
+1
-3
1 addition, 3 deletions
SConscript.irdb_lib
configure
+0
-3069
0 additions, 3069 deletions
configure
configure.in
+0
-95
0 additions, 95 deletions
configure.in
src/interfaces/irdb/STARS_IRDB_Interface.cpp
+1
-1
1 addition, 1 deletion
src/interfaces/irdb/STARS_IRDB_Interface.cpp
with
2 additions
and
3168 deletions
SConscript.irdb_lib
+
1
−
3
View file @
ad61db4c
...
...
@@ -21,8 +21,6 @@ cpppath='''
$SMPSA_HOME/include/interfaces/abstract \
$IRDB_SDK/include \
$SECURITY_TRANSFORMS_HOME/include \
$SECURITY_TRANSFORMS_HOME/beaengine/include \
$SECURITY_TRANSFORMS_HOME/libIRDB/include/ \
$SECURITY_TRANSFORMS_HOME/libMEDSannotation/include/ \
$SECURITY_TRANSFORMS_HOME/third_party/elfio-code/ \
'''
...
...
@@ -41,7 +39,7 @@ IRDB_CCFLAGS=''' -fmax-errors=2 -std=c++0x \
'''+STARS_CCFLAGS+" "
IRDB_LIBPATH="$SECURITY_TRANSFORMS_HOME/lib $SECURITY_TRANSFORMS_HOME/beaengine/lib/Linux.gnu.Debug "
libs="
IRDB
-core
IRDB
-cfg MEDSannotation
IRDB
-util"
libs="
irdb
-core
irdb
-cfg MEDSannotation
irdb
-util"
IRDB_LDFLAGS=" "
...
...
This diff is collapsed.
Click to expand it.
configure
deleted
100755 → 0
+
0
−
3069
View file @
184f3f01
This diff is collapsed.
Click to expand it.
configure.in
deleted
100644 → 0
+
0
−
95
View file @
184f3f01
AC_INIT()
AC_ARG_ENABLE([debugging], [ --enable-debugging enable -g when compiling ])
AC_ARG_ENABLE([64bit_analysis], [ --enable-64bit-analysis enable 64bit binary analysis ])
AC_ARG_ENABLE([64bit_build], [ --enable-64bit-build enable 64bit build of stars, enabling more memory usage.])
AC_ARG_ENABLE([reducedanalysis], [ --enable-reducedanalysis reduce the amount of in-depth analysis (useful for large programs that exhaust memory)])
AC_ARG_ENABLE([idapro], [ --enable-idapro build STARS as a plugin for IDA])
AC_ARG_ENABLE([idapro], [ --enable-irdb build STARS as a IRDB analysis])
AC_CANONICAL_HOST
EXTRA_CXXFLAGS=-O3
CXX=g++
LD=g++
PLUGIN_NAME=SMPStaticAnalyzer.plx
if test "$enable_debugging" = yes; then
EXTRA_CXXFLAGS=-g
fi
if test "$enable_idapro" != no; then
BACKENDS=idapro
if test "$enable_64bit_build" = yes; then
echo Using 64-bit build mode is disabled with IDA -- exiting...
exit 1
fi
fi
if test "$enable_irdb" = yes; then
BACKENDS="$BACKENDS irdb"
fi
EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} \
-std=c++0x \
-I${SMPSA_HOME}/include \
-I${SMPSA_HOME}/include/base \
-I${SMPSA_HOME}/include/interfaces \
-I${SMPSA_HOME}/include/interfaces/abstract \
-I${IDASDK}/include \
-I${SMPSA_HOME}/include/interfaces/idapro \
-D__LINUX__ -w --short-enums \
"
# select 32-bit or 64-bit build mode.
if test "$enable_64bit_build" = yes; then
EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -m64"
else
EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -m32"
fi
# set flags specific to each backend.
IDA_CXXFLAGS="-DSTARS_IDA_INTERFACE -D__PLUGIN__ -D__IDP__"
IRDB_CXXFLAGS="-DSTARS_IRDB_INTERFACE -I${SECURITY_TRANSFORMS_HOME}/include -I${SECURITY_TRANSFORMS_HOME}/libIRDB/include -I${SECURITY_TRANSFORMS_HOME}/beaengine/include"
if test "$enable_reducedanalysis" = yes; then
EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -DSMP_REDUCED_ANALYSIS"
fi
if test ! "$enable_64bit_analysis" = no; then
echo Enabling 64-bit IDAPRO support.
EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -D__EA64__"
PLUGIN_NAME=SMPStaticAnalyzer.plx64
fi
STARS_HOME=$SMPSA_HOME
AC_SUBST(EXTRA_CXXFLAGS)
AC_SUBST(CXX)
AC_SUBST(LD)
AC_SUBST(PLUGIN_NAME)
AC_SUBST(STARS_HOME)
AC_SUBST(IDA_CXXFLAGS)
AC_SUBST(IRDB_CXXFLAGS)
AC_SUBST(BACKENDS)
AC_OUTPUT(Makefile
src/Makefile
src/base/Makefile
src/interfaces/Makefile
src/interfaces/idapro/Makefile
src/interfaces/irdb/Makefile
src/interfaces/abstract/Makefile
src/drivers/Makefile
src/drivers/idapro/Makefile
src/drivers/irdb/Makefile
lib/irdb/Makefile
lib/idapro/Makefile
lib/Makefile
scripts/Makefile
)
This diff is collapsed.
Click to expand it.
src/interfaces/irdb/STARS_IRDB_Interface.cpp
+
1
−
1
View file @
ad61db4c
...
...
@@ -9,7 +9,7 @@
#include
<elfio/elfio.hpp>
#include
<irdb-core>
#include
<
libIRDB
-util
.hpp
>
#include
<
irdb
-util>
#include
<assert.h>
#include
<stdarg.h>
#include
<stdio.h>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment