Compare commits
2 Commits
53b741aee7
...
4765942d50
Author | SHA1 | Date | |
---|---|---|---|
4765942d50 | |||
|
050025b76b |
40
0001-Remove-flto-from-Clang-LLVM-plugins.patch
Normal file
40
0001-Remove-flto-from-Clang-LLVM-plugins.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
From fdc6708a31f3569547daffbc4196c1c25fa2e1da Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Abdurachmanov <davidlt@rivosinc.com>
|
||||||
|
Date: Fri, 28 Apr 2023 15:37:28 +0000
|
||||||
|
Subject: [PATCH] Remove -flto from Clang & LLVM plugins
|
||||||
|
|
||||||
|
This requres LLVMgold.so, which is not supported right now.
|
||||||
|
|
||||||
|
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
|
||||||
|
---
|
||||||
|
clang-plugin/Makefile.in | 1 -
|
||||||
|
llvm-plugin/Makefile.in | 1 -
|
||||||
|
2 files changed, 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/clang-plugin/Makefile.in b/clang-plugin/Makefile.in
|
||||||
|
index 5e4dc24..26cd5d9 100644
|
||||||
|
--- a/clang-plugin/Makefile.in
|
||||||
|
+++ b/clang-plugin/Makefile.in
|
||||||
|
@@ -14,7 +14,6 @@ PLUGIN_OPTIONS = \
|
||||||
|
-fPIC \
|
||||||
|
-Wall \
|
||||||
|
-O2 \
|
||||||
|
- -flto \
|
||||||
|
-g -grecord-gcc-switches \
|
||||||
|
-Wl,--build-id=md5 \
|
||||||
|
-Wl,-z,now
|
||||||
|
diff --git a/llvm-plugin/Makefile.in b/llvm-plugin/Makefile.in
|
||||||
|
index 36d7c41..5009a39 100644
|
||||||
|
--- a/llvm-plugin/Makefile.in
|
||||||
|
+++ b/llvm-plugin/Makefile.in
|
||||||
|
@@ -14,7 +14,6 @@ PLUGIN_OPTIONS = \
|
||||||
|
-fPIC \
|
||||||
|
-Wall \
|
||||||
|
-O2 \
|
||||||
|
- -flto \
|
||||||
|
-g -grecord-gcc-switches \
|
||||||
|
-Wl,--build-id=md5 \
|
||||||
|
-Wl,-z,now
|
||||||
|
--
|
||||||
|
2.40.0
|
||||||
|
|
33
annobin.spec
33
annobin.spec
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
Name: annobin
|
Name: annobin
|
||||||
Summary: Annotate and examine compiled binary files
|
Summary: Annotate and examine compiled binary files
|
||||||
Version: 12.40
|
Version: 12.42
|
||||||
Release: 1%{?dist}
|
Release: 1.0.riscv64%{?dist}
|
||||||
License: GPL-3.0-or-later AND LGPL-2.0-or-later AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND GFDL-1.3-or-later
|
License: GPL-3.0-or-later AND LGPL-2.0-or-later AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND GFDL-1.3-or-later
|
||||||
URL: https://sourceware.org/annobin/
|
URL: https://sourceware.org/annobin/
|
||||||
# Maintainer: nickc@redhat.com
|
# Maintainer: nickc@redhat.com
|
||||||
@ -74,6 +74,8 @@ Source: https://nickc.fedorapeople.org/%{annobin_sources}
|
|||||||
# Insert patches here, if needed. Eg:
|
# Insert patches here, if needed. Eg:
|
||||||
# Patch01: annobin-plugin-default-string-notes.patch
|
# Patch01: annobin-plugin-default-string-notes.patch
|
||||||
|
|
||||||
|
Patch10: 0001-Remove-flto-from-Clang-LLVM-plugins.patch
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Make sure that the necessary sub-packages are built.
|
# Make sure that the necessary sub-packages are built.
|
||||||
@ -342,8 +344,8 @@ CONFIG_ARGS="$CONFIG_ARGS --with-debuginfod"
|
|||||||
CONFIG_ARGS="$CONFIG_ARGS --without-debuginfod"
|
CONFIG_ARGS="$CONFIG_ARGS --without-debuginfod"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with clangplugin}
|
%if %{without clangplugin}
|
||||||
CONFIG_ARGS="$CONFIG_ARGS --with-clang"
|
CONFIG_ARGS="$CONFIG_ARGS --without-clang-plugin"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{without gccplugin}
|
%if %{without gccplugin}
|
||||||
@ -352,8 +354,8 @@ CONFIG_ARGS="$CONFIG_ARGS --without-gcc-plugin"
|
|||||||
CONFIG_ARGS="$CONFIG_ARGS --with-gcc-plugin-dir=%{ANNOBIN_GCC_PLUGIN_DIR}"
|
CONFIG_ARGS="$CONFIG_ARGS --with-gcc-plugin-dir=%{ANNOBIN_GCC_PLUGIN_DIR}"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with llvmplugin}
|
%if %{without llvmplugin}
|
||||||
CONFIG_ARGS="$CONFIG_ARGS --with-llvm"
|
CONFIG_ARGS="$CONFIG_ARGS --without-llvm-plugin"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{without tests}
|
%if %{without tests}
|
||||||
@ -387,11 +389,6 @@ export CLANG_TARGET_OPTIONS="-mbranch-protection=standard"
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch ppc ppc64 ppc64le
|
|
||||||
# FIXME: This is a workaround for a problem with the Clang C++ headers. It should not be needed.
|
|
||||||
export CLANG_TARGET_OPTIONS="-mabi=ibmlongdouble"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CXXFLAGS="$CFLAGS" %configure ${CONFIG_ARGS} || cat config.log
|
CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" CXXFLAGS="$CFLAGS" %configure ${CONFIG_ARGS} || cat config.log
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
@ -534,7 +531,19 @@ make check
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Feb 13 2024 Nick Clifron <nickc@redhat.com> - 12.30-1
|
* Sat Mar 02 2024 David Abdurachmanov <davidlt@rivosinc.com> - 12.42-1.0.risv64
|
||||||
|
- Disable LTO on riscv64
|
||||||
|
|
||||||
|
* Fri Mar 01 2024 Nick Clifton <nickc@redhat.com> - 12.42-1
|
||||||
|
- Annocheck: Improve heuristics for locating debug info files. (#2267097)
|
||||||
|
- Configure: Harmonize configure options.
|
||||||
|
|
||||||
|
* Tue Feb 27 2024 Nick Clifton <nickc@redhat.com> - 12.41-1
|
||||||
|
- Clang Plugin: Fix building with Clang 18. (#31414)
|
||||||
|
- GCC Plugin: Add support for MIPS specific target functions.
|
||||||
|
- GCC Plugin: Use .dc.a for address expressions in 64-bit ELF format notes.
|
||||||
|
|
||||||
|
* Tue Feb 13 2024 Nick Clifron <nickc@redhat.com> - 12.40-1
|
||||||
- Annocheck: Improve heuristic for skipping LTO and FORTIFY tests. (#2264000)
|
- Annocheck: Improve heuristic for skipping LTO and FORTIFY tests. (#2264000)
|
||||||
|
|
||||||
* Fri Feb 09 2024 Nick Clifron <nickc@redhat.com> - 12.39-1
|
* Fri Feb 09 2024 Nick Clifron <nickc@redhat.com> - 12.39-1
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (annobin-12.40.tar.xz) = f6219711771d2b84fb5b7afbcbd34a4e1901119ba2dcedb8817ec6b039813dec9b7f1194bd4f71ba802a1c32502f8fd9b995cef20e4724bbcd42516927a7aa0c
|
SHA512 (annobin-12.42.tar.xz) = 3f0a4610a458ef354844d204d87ac58bf61fba09e56afc7138086a1e419075681afa3d7c82090385a5c252905865be7a2bf8ad27001f69b3ba15f4748cc92cba
|
||||||
|
Loading…
Reference in New Issue
Block a user