summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2023-02-26 15:11:35 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2023-02-26 15:11:35 +0100
commitcc7c8fc214f34c828b7d3e05a2295c1bcc863f94 (patch)
tree4cd94c7d389f11ab77ab58707e5c42f95bca0e08
parent44f557e402e026b67de66f820617e38b6bc57435 (diff)
elf2flt: handle none relocs
-rw-r--r--toolchain/elf2flt/patches/v2021.08/0009-riscv.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolchain/elf2flt/patches/v2021.08/0009-riscv.patch b/toolchain/elf2flt/patches/v2021.08/0009-riscv.patch
new file mode 100644
index 000000000..c1072cb45
--- /dev/null
+++ b/toolchain/elf2flt/patches/v2021.08/0009-riscv.patch
@@ -0,0 +1,11 @@
+diff -Nur elf2flt-v2021.08.orig/elf2flt.c elf2flt-v2021.08/elf2flt.c
+--- elf2flt-v2021.08.orig/elf2flt.c 2023-02-26 11:32:05.714465277 +0100
++++ elf2flt-v2021.08/elf2flt.c 2023-02-26 15:04:52.726514896 +0100
+@@ -852,6 +852,7 @@
+ default:
+ goto bad_resolved_reloc;
+ #elif defined(TARGET_riscv64) || defined(TARGET_riscv32)
++ case R_RISCV_NONE:
+ case R_RISCV_32_PCREL:
+ case R_RISCV_ADD8:
+ case R_RISCV_ADD16: