summaryrefslogtreecommitdiffstats
path: root/libcpu
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2022-12-20 14:53:43 +0100
committerMark Wielaard <[email protected]>2022-12-20 18:41:05 +0100
commit6ecd16410ce1fe5cb0ac5b7c3342c5cc330e3a04 (patch)
treed24a7414034932e8bf95b1d694f006375122a40f /libcpu
parent13a4d1279c5b7847049ca3045d04f2705c45ce31 (diff)
Do not use relative include paths in library files.
Rely on include dirs being set up correctly. Setup libdw AM_CPPFLAGS to include libebl directory. In libdwfl note that debuginfod.h is a generated file in the builddir. Only include it in the one file debuginfod-client.c that really needs it. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/ChangeLog6
-rw-r--r--libcpu/bpf_disasm.c4
-rw-r--r--libcpu/i386_disasm.c2
-rw-r--r--libcpu/riscv_disasm.c2
4 files changed, 10 insertions, 4 deletions
diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog
index 248b1aba..bd517b94 100644
--- a/libcpu/ChangeLog
+++ b/libcpu/ChangeLog
@@ -1,3 +1,9 @@
+2022-12-20 Mark Wielaard <[email protected]>
+
+ * bpf_disasm.c: Include common.h and libeblP.h.
+ * i386_disasm.c: Include libeblP.h.
+ * riscv_disasm.c: Likewise.
+
2022-10-21 Yonggang Luo <[email protected]>
* i386_data.h: Define FCT_mod$64r_m as FCT_mod$r_m for i386.
diff --git a/libcpu/bpf_disasm.c b/libcpu/bpf_disasm.c
index 62643c81..dabd8a4e 100644
--- a/libcpu/bpf_disasm.c
+++ b/libcpu/bpf_disasm.c
@@ -37,8 +37,8 @@
#include <inttypes.h>
#include "bpf.h"
-#include "../libelf/common.h"
-#include "../libebl/libeblP.h"
+#include "common.h"
+#include "libeblP.h"
static const char class_string[8][8] = {
[BPF_LD] = "ld",
diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c
index 599d1654..c42f8d1c 100644
--- a/libcpu/i386_disasm.c
+++ b/libcpu/i386_disasm.c
@@ -41,7 +41,7 @@
#include <stdlib.h>
#include <string.h>
-#include "../libebl/libeblP.h"
+#include "libeblP.h"
#define MACHINE_ENCODING LITTLE_ENDIAN
#include "memory-access.h"
diff --git a/libcpu/riscv_disasm.c b/libcpu/riscv_disasm.c
index 7175c077..823fe9ca 100644
--- a/libcpu/riscv_disasm.c
+++ b/libcpu/riscv_disasm.c
@@ -39,7 +39,7 @@
#include <stdlib.h>
#include <string.h>
-#include "../libebl/libeblP.h"
+#include "libeblP.h"
#define MACHINE_ENCODING LITTLE_ENDIAN
#include "memory-access.h"