From 4cfe6b479ad547bd008aa98b783eedfe4e0d12b1 Mon Sep 17 00:00:00 2001 From: cherry530 <707078654@qq.com> Date: Mon, 20 May 2024 19:49:53 +0800 Subject: [PATCH] Adapted gcc Signed-off-by: cherry530 <707078654@qq.com> --- adapte-gcc.patch | 15 +++++++++++++++ annobin.spec | 8 +++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 adapte-gcc.patch diff --git a/adapte-gcc.patch b/adapte-gcc.patch new file mode 100644 index 0000000..97f086b --- /dev/null +++ b/adapte-gcc.patch @@ -0,0 +1,15 @@ +diff --git a/plugin/annobin.cc b/plugin/annobin.cc +index ac34d5f..67a2837 100644 +--- a/plugin/annobin.cc ++++ b/plugin/annobin.cc +@@ -638,7 +638,9 @@ compute_GOWall_options (void) + } + else + val = write_symbols; +- ++ /*Because commit https://gitee.com/src-openeuler/gcc/pulls/425 removes use_gnu_debug_info_extensions, we modify it by setting use_gnu_debug_info_extensions locally to false*/ ++ bool use_gnu_debug_info_extensions; ++ use_gnu_debug_info_extensions = false; + if (use_gnu_debug_info_extensions) + val |= (1 << 3); + diff --git a/annobin.spec b/annobin.spec index f246056..9de47fe 100644 --- a/annobin.spec +++ b/annobin.spec @@ -13,11 +13,14 @@ Name: annobin Version: 8.92 -Release: 1 +Release: 2 Summary: Binary annotation plugin for GCC License: GPLv3+ URL: https://fedoraproject.org/wiki/Toolchain/Watermark Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz + +Patch0: adapte-gcc.patch + # For the latest sources use: git clone git://sourceware.org/git/annobin.git BuildRequires: gcc gcc-plugin-devel gcc-c++ @@ -114,6 +117,9 @@ make check %doc %{_mandir}/man1/run-on-binaries-in.1.gz %changelog +* Mon May 20 2024 xu_ping <707078654@qq.com> - 8.92-2 +- Adapted gcc for openeuler + * Wed Oct 18 2023 yaoxin - 8.92-1 - Upgrade to 8.92 -- Gitee