Signed-off-by: Gianfranco Costamagna <[email protected]> Signed-off-by: Gianfranco Costamagna <[email protected]> --- .../dlt-daemon/dlt-daemon/568.patch | 27 +++++++++++++++++++ .../dlt-daemon/dlt-daemon_2.18.10.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/568.patch
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/568.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/568.patch new file mode 100644 index 000000000..1a14daa4d --- /dev/null +++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/568.patch @@ -0,0 +1,27 @@ +Upstream-Status: Submitted [https://github.com/COVESA/dlt-daemon/pull/568] + +From f68119a1ef9b8ae2bb894801a22842719d0856be Mon Sep 17 00:00:00 2001 +From: Gianfranco Costamagna <[email protected]> +Date: Tue, 14 Nov 2023 17:18:57 +0100 +Subject: [PATCH] dlt_cdh: + +Make sure on 64 bit we read an ELF64 structure. +Otherwise we get a read error, and the context file is missing some good +to know information +--- + src/core_dump_handler/dlt_cdh.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/core_dump_handler/dlt_cdh.h b/src/core_dump_handler/dlt_cdh.h +index 3dac480a..1ace805b 100644 +--- a/src/core_dump_handler/dlt_cdh.h ++++ b/src/core_dump_handler/dlt_cdh.h +@@ -45,7 +45,7 @@ + #define CORE_FILE_PATTERN "%s/core.%d.%s.%d.gz" + #define CONTEXT_FILE_PATTERN "%s/context.%d.%s.%d.txt" + +-#if ((__SIZEOF_POINTER) == 4) ++#if ((__SIZEOF_POINTER__) == 4) + #define ELF_Ehdr Elf32_Ehdr + #define ELF_Phdr Elf32_Phdr + #define ELF_Shdr Elf32_Shdr 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 3d2e4a73f..b6cb788fe 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 @@ -19,6 +19,7 @@ SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \ file://0004-Modify-systemd-config-directory.patch \ file://544.patch \ file://567.patch \ + file://568.patch \ " SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#106719): https://lists.openembedded.org/g/openembedded-devel/message/106719 Mute This Topic: https://lists.openembedded.org/mt/102559563/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
