aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/lib/sys/module/common.c3
-rw-r--r--com32/lib/sys/module/common.h4
-rw-r--r--com32/lib/sys/module/elf_module.c2
-rw-r--r--com32/lib/sys/module/elfutils.c2
-rw-r--r--com32/lib/sys/module/elfutils.h (renamed from com32/include/sys/elfutils.h)0
-rw-r--r--com32/lib/sys/module/shallow_module.c6
6 files changed, 9 insertions, 8 deletions
diff --git a/com32/lib/sys/module/common.c b/com32/lib/sys/module/common.c
index 387dc1a3..01cbe692 100644
--- a/com32/lib/sys/module/common.c
+++ b/com32/lib/sys/module/common.c
@@ -10,10 +10,9 @@
#include <string.h>
#include <linux/list.h>
-
#include <sys/module.h>
-#include <sys/elfutils.h>
+#include "elfutils.h"
#include "common.h"
/**
diff --git a/com32/lib/sys/module/common.h b/com32/lib/sys/module/common.h
index 8aafe513..bcbffdf1 100644
--- a/com32/lib/sys/module/common.h
+++ b/com32/lib/sys/module/common.h
@@ -11,10 +11,10 @@
#include <stdio.h>
#include <sys/module.h>
-#include <sys/elfutils.h>
-
#include <linux/list.h>
+#include "elfutils.h"
+
// Performs an operation and jumps to a given label if an error occurs
#define CHECKED(res, expr, error) \
diff --git a/com32/lib/sys/module/elf_module.c b/com32/lib/sys/module/elf_module.c
index ba535f45..4b1f2bbd 100644
--- a/com32/lib/sys/module/elf_module.c
+++ b/com32/lib/sys/module/elf_module.c
@@ -13,8 +13,8 @@
#include <linux/list.h>
#include <sys/module.h>
-#include <sys/elfutils.h>
+#include "elfutils.h"
#include "common.h"
diff --git a/com32/lib/sys/module/elfutils.c b/com32/lib/sys/module/elfutils.c
index ce781a08..0e653171 100644
--- a/com32/lib/sys/module/elfutils.c
+++ b/com32/lib/sys/module/elfutils.c
@@ -1,7 +1,7 @@
#include <stdlib.h>
#include <errno.h>
-#include <sys/elfutils.h>
+#include "elfutils.h"
unsigned long elf_hash(const unsigned char *name) {
unsigned long h = 0;
diff --git a/com32/include/sys/elfutils.h b/com32/lib/sys/module/elfutils.h
index b8df660e..b8df660e 100644
--- a/com32/include/sys/elfutils.h
+++ b/com32/lib/sys/module/elfutils.h
diff --git a/com32/lib/sys/module/shallow_module.c b/com32/lib/sys/module/shallow_module.c
index 64e2679b..f198c0db 100644
--- a/com32/lib/sys/module/shallow_module.c
+++ b/com32/lib/sys/module/shallow_module.c
@@ -5,10 +5,12 @@
* Author: Stefan Bucur <stefanb@zytor.com>
*/
-#include "common.h"
+
#include <sys/module.h>
-#include <sys/elfutils.h>
+
+#include "common.h"
+#include "elfutils.h"
static int check_header_shallow(Elf32_Ehdr *elf_hdr) {