From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@buildroot.org
Subject: [Buildroot] [PATCH] package/elf2flt: fix riscv64 C++ compilations
Date: Wed, 21 Aug 2024 09:37:41 +0200 [thread overview]
Message-ID: <ZsWZRc1pbliUXAk7@waldemar-brodkorb.de> (raw)
Fixes:
http://autobuild.buildroot.org/results/63f/63f32c9d5d4097ef2b3cbba1ce665e13e9dbd430
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
..._RISCV_SET_ULEB128-R_RISCV_SUB_ULEB1.patch | 30 +++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 package/elf2flt/0001-riscv64-handle-R_RISCV_SET_ULEB128-R_RISCV_SUB_ULEB1.patch
diff --git a/package/elf2flt/0001-riscv64-handle-R_RISCV_SET_ULEB128-R_RISCV_SUB_ULEB1.patch b/package/elf2flt/0001-riscv64-handle-R_RISCV_SET_ULEB128-R_RISCV_SUB_ULEB1.patch
new file mode 100644
index 0000000000..3aba6eca08
--- /dev/null
+++ b/package/elf2flt/0001-riscv64-handle-R_RISCV_SET_ULEB128-R_RISCV_SUB_ULEB1.patch
@@ -0,0 +1,30 @@
+From 5b8288257c66c76cc578935276dc5b512010b6a3 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Wed, 21 Aug 2024 07:23:19 +0200
+Subject: [PATCH] riscv64: handle R_RISCV_SET_ULEB128/R_RISCV_SUB_ULEB128
+
+For C++ applications or libraries like gdbserver or gmp
+we need to handle these relocations.
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+Upstream: https://github.com/uclinux-dev/elf2flt/pull/35
+---
+ elf2flt.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/elf2flt.c b/elf2flt.c
+index 04b6b43..d5e32ab 100644
+--- a/elf2flt.c
++++ b/elf2flt.c
+@@ -840,6 +840,8 @@ output_relocs (
+ case R_RISCV_SET8:
+ case R_RISCV_SET16:
+ case R_RISCV_SET32:
++ case R_RISCV_SET_ULEB128:
++ case R_RISCV_SUB_ULEB128:
+ continue;
+ case R_RISCV_32:
+ case R_RISCV_64:
+--
+2.30.2
+
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2024-08-21 7:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-21 7:37 Waldemar Brodkorb [this message]
2024-08-23 17:41 ` [Buildroot] [PATCH] package/elf2flt: fix riscv64 C++ compilations Thomas Petazzoni via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZsWZRc1pbliUXAk7@waldemar-brodkorb.de \
--to=wbx@openadk.org \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.