summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon/567.patch36
-rw-r--r--meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb1
2 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/567.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/567.patch
new file mode 100644
index 0000000000..fd36480456
--- /dev/null
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/567.patch
@@ -0,0 +1,36 @@
1Upstream-Status: Submitted [https://github.com/COVESA/dlt-daemon/pull/567]
2
3From c84e48f6986054cf8b9459e608235b7bd1635746 Mon Sep 17 00:00:00 2001
4From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
5Date: Mon, 13 Nov 2023 12:37:23 +0100
6Subject: [PATCH] dlt_cdh:
7
8Make sure on 64 bit we read an ELF64 structure.
9Otherwise we get a read error, and the context file is missing some good
10to know information
11---
12 src/core_dump_handler/dlt_cdh.h | 7 +++++++
13 1 file changed, 7 insertions(+)
14
15diff --git a/src/core_dump_handler/dlt_cdh.h b/src/core_dump_handler/dlt_cdh.h
16index 8608c6c4..3dac480a 100644
17--- a/src/core_dump_handler/dlt_cdh.h
18+++ b/src/core_dump_handler/dlt_cdh.h
19@@ -45,10 +45,17 @@
20 #define CORE_FILE_PATTERN "%s/core.%d.%s.%d.gz"
21 #define CONTEXT_FILE_PATTERN "%s/context.%d.%s.%d.txt"
22
23+#if ((__SIZEOF_POINTER) == 4)
24 #define ELF_Ehdr Elf32_Ehdr
25 #define ELF_Phdr Elf32_Phdr
26 #define ELF_Shdr Elf32_Shdr
27 #define ELF_Nhdr Elf32_Nhdr
28+#else
29+#define ELF_Ehdr Elf64_Ehdr
30+#define ELF_Phdr Elf64_Phdr
31+#define ELF_Shdr Elf64_Shdr
32+#define ELF_Nhdr Elf64_Nhdr
33+#endif
34
35 typedef struct
36 {
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb
index 410fffa24b..3d2e4a73f1 100644
--- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb
+++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb
@@ -18,6 +18,7 @@ SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \
18 file://0002-Don-t-execute-processes-as-a-specific-user.patch \ 18 file://0002-Don-t-execute-processes-as-a-specific-user.patch \
19 file://0004-Modify-systemd-config-directory.patch \ 19 file://0004-Modify-systemd-config-directory.patch \
20 file://544.patch \ 20 file://544.patch \
21 file://567.patch \
21 " 22 "
22SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f" 23SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f"
23 24