Skip to content

Commit

Permalink
Add symbol option to Makefile
Browse files Browse the repository at this point in the history
This option allows one to build LiME without stripping symbols.
When using Volatility you can use dwarf on LiME to build the needed
profile.
  • Loading branch information
kd8bny committed Jan 16, 2019
1 parent 7f617c3 commit 9bd146a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* [Linux](#Linux)
* [External](#External)
* [Debug](#Debug)
* [Symbols](#Symbols)
* [Android](#Android)
* [Usage](#Usage)
* [Parameters](#Params)
Expand All @@ -23,6 +24,9 @@ LiME can be compiled externally from the target in order to provide a more foren
### Debug <a name="Debug"/>
When compiling LiME with the default Makefile, using the command “make debug” will compile a LiME module with extra debug output. The output can be read by using the dmesg command on Linux.

### Symbols <a name="Symbols"/>
When compiling LiME with the default Makefile, using the command “make symbols" will compile a LiME module without stripping symbols. This is useful for tools such as Volatility where one can create a profile without loading second module.

### Android <a name="Android"/>
In order to cross-compile LiME for use on an Android device, additional steps are required.

Expand Down
4 changes: 4 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ debug:
strip --strip-unneeded lime.ko
mv lime.ko lime-$(KVER).ko

symbols:
$(MAKE) -C $(KDIR) M="$(PWD)" modules
mv lime.ko lime-$(KVER).ko

modules: main.c disk.c tcp.c hash.c lime.h
$(MAKE) -C /lib/modules/$(KVER)/build M="$(PWD)" $@
strip --strip-unneeded lime.ko
Expand Down

0 comments on commit 9bd146a

Please sign in to comment.