From 383ed10bca59003ce43eb7e5933a1dfcf67c4475 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 3 Aug 2022 18:58:07 +0300 Subject: [PATCH] Set target_plugin for riscv targets Signed-off-by: David Abdurachmanov --- 0001-Set-target_plugin-for-riscv.patch | 42 ++++++++++++++++++++++++++ annobin.spec | 7 ++++- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 0001-Set-target_plugin-for-riscv.patch diff --git a/0001-Set-target_plugin-for-riscv.patch b/0001-Set-target_plugin-for-riscv.patch new file mode 100644 index 0000000..d06f862 --- /dev/null +++ b/0001-Set-target_plugin-for-riscv.patch @@ -0,0 +1,42 @@ +From 7f4e9eb63a2103abd74c4e577311a0262c86c1f3 Mon Sep 17 00:00:00 2001 +From: David Abdurachmanov +Date: Wed, 3 Aug 2022 18:56:00 +0300 +Subject: [PATCH] Set target_plugin for riscv + +Signed-off-by: David Abdurachmanov +--- + configure | 3 +++ + configure.ac | 3 +++ + 2 files changed, 6 insertions(+) + +diff --git a/configure b/configure +index 10dd92e..5f2e351 100755 +--- a/configure ++++ b/configure +@@ -17802,6 +17802,9 @@ case ${target} in + powerpc*-*-*) + target_plugin="powerpc.annobin.lo" + ;; ++ riscv*-*-*) ++ target_plugin="riscv.annobin.lo" ++ ;; + *86-*-*) + target_plugin="i686.annobin.lo" + ;; +diff --git a/configure.ac b/configure.ac +index 49771b4..bbd142e 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -33,6 +33,9 @@ case ${target} in + powerpc*-*-*) + target_plugin="powerpc.annobin.lo" + ;; ++ riscv*-*-*) ++ target_plugin="riscv.annobin.lo" ++ ;; + *86-*-*) + target_plugin="i686.annobin.lo" + ;; +-- +2.35.1 + diff --git a/annobin.spec b/annobin.spec index 16b53a1..a75d251 100644 --- a/annobin.spec +++ b/annobin.spec @@ -2,7 +2,7 @@ Name: annobin Summary: Annotate and examine compiled binary files Version: 10.79 -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} License: GPLv3+ URL: https://sourceware.org/annobin/ # Maintainer: nickc@redhat.com @@ -68,6 +68,8 @@ Source: https://nickc.fedorapeople.org/%{annobin_sources} # Insert patches here, if needed. Eg: # Patch01: annobin-foo.patch +Patch10: 0001-Set-target_plugin-for-riscv.patch + #--------------------------------------------------------------------------------- # Make sure that the necessary sub-packages are built. @@ -483,6 +485,9 @@ fi #--------------------------------------------------------------------------------- %changelog +* Wed Aug 03 2022 David Abdurachmanov - 10.79-1.0.riscv64 +- Fix riscv targets + * Mon Jul 25 2022 Nick Clifton - 10.79-1 - Annocheck: Fixes for libannocheck.h.