Adapted gcc

Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
cherry530 2024-05-20 19:49:53 +08:00
parent eb9015847d
commit 4cfe6b479a
2 changed files with 22 additions and 1 deletions

15
adapte-gcc.patch Normal file
View File

@ -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);

View File

@ -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 <yao_xin001@hoperun.com> - 8.92-1
- Upgrade to 8.92