Skip to content

Commit

Permalink
Revert "LNK Module (#1957)"
Browse files Browse the repository at this point in the history
This reverts commit 8ce0c6c. See comments in #1957 for more context.
  • Loading branch information
BitsOfBinary authored and plusvic committed Oct 6, 2023
1 parent 1a85738 commit 52e4f1c
Show file tree
Hide file tree
Showing 21 changed files with 3 additions and 4,261 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,3 @@ windows/*/packages/
.vscode/

tests/mapper

# Sphinx build
/docs/_build/*
3 changes: 0 additions & 3 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ yara_library(
"time",
"console",
"string",
"lnk",
],
modules_srcs = [
"libyara/modules/cuckoo/cuckoo.c",
Expand All @@ -97,8 +96,6 @@ yara_library(
"libyara/modules/time/time.c",
"libyara/modules/console/console.c",
"libyara/modules/string/string.c",
"libyara/modules/lnk/lnk.c",
"libyara/modules/lnk/lnk_utils.c",
],
deps = [
"@jansson",
Expand Down
11 changes: 1 addition & 10 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ MODULES += libyara/modules/console/console.c

MODULES += libyara/modules/string/string.c

MODULES += libyara/modules/lnk/lnk.c
MODULES += libyara/modules/lnk/lnk_utils.c

if CUCKOO_MODULE
MODULES += libyara/modules/cuckoo/cuckoo.c
endif
Expand Down Expand Up @@ -195,8 +192,6 @@ noinst_HEADERS = \
libyara/include/yara/pe.h \
libyara/include/yara/pe_utils.h \
libyara/include/yara/re_lexer.h \
libyara/include/yara/lnk.h \
libyara/include/yara/lnk_utils.h \
libyara/modules/module_list

dist_noinst_DATA = libyara/pb/yara.proto
Expand Down Expand Up @@ -353,9 +348,6 @@ test_re_split_LDFLAGS = -static
test_async_SOURCES = tests/test-async.c tests/util.c
test_async_LDADD = libyara.la
test_async_LDFLAGS = -static
test_lnk_SOURCES = tests/test-lnk.c tests/util.c
test_lnk_LDADD = libyara.la
test_lnk_LDFLAGS = -static

TESTS = $(check_PROGRAMS)
TESTS_ENVIRONMENT = TOP_SRCDIR=$(top_srcdir) TOP_BUILDDIR=$(top_builddir)
Expand All @@ -374,8 +366,7 @@ check_PROGRAMS = \
test-stack \
test-re-split \
test-async \
test-string \
test-lnk
test-string

EXTRA_PROGRAMS = tests/mapper
CLEANFILES = tests/mapper$(EXEEXT)
Expand Down
2 changes: 0 additions & 2 deletions bazel/yara.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ def yara_library(
"libyara/include/yara/lexer.h",
"libyara/include/yara/libyara.h",
"libyara/include/yara/limits.h",
"libyara/include/yara/lnk.h",
"libyara/include/yara/lnk_utils.h",
"libyara/include/yara/macho.h",
"libyara/include/yara/mem.h",
"libyara/include/yara/modules.h",
Expand Down
2 changes: 1 addition & 1 deletion docs/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ modules in the :ref:`writing-modules` section.
Time <modules/time>
Console <modules/console>
String <modules/string>
LNK <modules/lnk>



Loading

0 comments on commit 52e4f1c

Please sign in to comment.