Disable LTO on riscv64 for LLVM/Clang
ld.gold is not supported on riscv64. This means that LTO plugin is not available on LLVM/Clang. Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
b8758c2ddd
commit
fde60ad240
|
@ -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
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Name: annobin
|
Name: annobin
|
||||||
Summary: Annotate and examine compiled binary files
|
Summary: Annotate and examine compiled binary files
|
||||||
Version: 12.24
|
Version: 12.24
|
||||||
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
|
||||||
|
@ -69,6 +69,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
|
||||||
|
|
||||||
|
Patch02: 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.
|
||||||
|
@ -524,6 +526,9 @@ make check
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 25 2023 David Abdurachmanov <davidlt@rivosinc.com> - 12.24-1.0.riscv64
|
||||||
|
- Disable LTO on riscv64 (for LLVM/Clang)
|
||||||
|
|
||||||
* Fri Aug 04 2023 Nick Clifron <nickc@redhat.com> - 12.24-1
|
* Fri Aug 04 2023 Nick Clifron <nickc@redhat.com> - 12.24-1
|
||||||
- Annocheck: Change GO FIPS test to look for CGO_ENABLED markers.
|
- Annocheck: Change GO FIPS test to look for CGO_ENABLED markers.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue