13.0.0-rc1 Release
This commit is contained in:
parent
7dfe500779
commit
68ca04b408
|
@ -0,0 +1,2 @@
|
||||||
|
/llvm-13.0.0rc1.src.tar.xz
|
||||||
|
/llvm-13.0.0rc1.src.tar.xz.sig
|
|
@ -0,0 +1,75 @@
|
||||||
|
From 3dc5722d5c7673a879f2b4680369d3ac8b6b64b6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tom Stellard <tstellar@redhat.com>
|
||||||
|
Date: Wed, 4 Aug 2021 14:05:38 -0700
|
||||||
|
Subject: [PATCH] cmake: Allow shared libraries to customize the soname using
|
||||||
|
LLVM_ABI_REVISION
|
||||||
|
|
||||||
|
The LLVM_ABI_REVISION variable is intended to be used for release
|
||||||
|
candidates which introduce an ABI change to a shared library. This
|
||||||
|
variable can be specified per library, so there is not one global value
|
||||||
|
for all of LLVM.
|
||||||
|
|
||||||
|
For example, if we LLVM X.0.0-rc2 introduces an ABI change for a library
|
||||||
|
compared with LLVM X.0.0-rc1, then the LLVM_ABI_REVISION number for
|
||||||
|
library will be incremented by 1.
|
||||||
|
|
||||||
|
In the main branch, LLVM_ABI_REVISION should always be 0, it is only
|
||||||
|
meant to be used in the release branch.
|
||||||
|
|
||||||
|
Differential Revision: https://reviews.llvm.org/D105594
|
||||||
|
---
|
||||||
|
llvm/cmake/modules/AddLLVM.cmake | 7 +++++--
|
||||||
|
llvm/tools/llvm-shlib/CMakeLists.txt | 9 +++++++++
|
||||||
|
3 files changed, 19 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
|
||||||
|
index 3e009f5061d3..a09405a1be3e 100644
|
||||||
|
--- a/llvm/cmake/modules/AddLLVM.cmake
|
||||||
|
+++ b/llvm/cmake/modules/AddLLVM.cmake
|
||||||
|
@@ -586,11 +586,14 @@ function(llvm_add_library name)
|
||||||
|
# Set SOVERSION on shared libraries that lack explicit SONAME
|
||||||
|
# specifier, on *nix systems that are not Darwin.
|
||||||
|
if(UNIX AND NOT APPLE AND NOT ARG_SONAME)
|
||||||
|
+ if (NOT LLVM_ABI_REVISION)
|
||||||
|
+ set(LLVM_ABI_REVISION 0)
|
||||||
|
+ endif()
|
||||||
|
set_target_properties(${name}
|
||||||
|
PROPERTIES
|
||||||
|
# Since 4.0.0, the ABI version is indicated by the major version
|
||||||
|
- SOVERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}
|
||||||
|
- VERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX})
|
||||||
|
+ SOVERSION ${LLVM_VERSION_MAJOR}.${LLVM_ABI_REVISION}
|
||||||
|
+ VERSION ${LLVM_VERSION_MAJOR}.${LLVM_ABI_REVISION})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
diff --git a/llvm/tools/llvm-shlib/CMakeLists.txt b/llvm/tools/llvm-shlib/CMakeLists.txt
|
||||||
|
index 76b9a25cbbcd..b876e7fed6b5 100644
|
||||||
|
--- a/llvm/tools/llvm-shlib/CMakeLists.txt
|
||||||
|
+++ b/llvm/tools/llvm-shlib/CMakeLists.txt
|
||||||
|
@@ -2,6 +2,11 @@
|
||||||
|
# library is enabled by setting LLVM_BUILD_LLVM_DYLIB=yes on the CMake
|
||||||
|
# commandline. By default the shared library only exports the LLVM C API.
|
||||||
|
|
||||||
|
+# In the main branch, LLVM_ABI_REVISION should always be 0. In the release
|
||||||
|
+# branches, this should be incremented before each release candidate every
|
||||||
|
+# time the ABI of libLLVM.so changes.
|
||||||
|
+set(LLVM_ABI_REVISION 0 CACHE STRING "ABI Revision number for SONAMEs (default: 0)")
|
||||||
|
+
|
||||||
|
set(SOURCES
|
||||||
|
libllvm.cpp
|
||||||
|
)
|
||||||
|
@@ -67,6 +72,10 @@ if(LLVM_BUILD_LLVM_DYLIB)
|
||||||
|
set_property(TARGET LLVM APPEND_STRING PROPERTY
|
||||||
|
LINK_FLAGS
|
||||||
|
" -compatibility_version 1 -current_version ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}")
|
||||||
|
+ else()
|
||||||
|
+ set_target_properties(LLVM
|
||||||
|
+ PROPERTIES
|
||||||
|
+ SOVERSION ${LLVM_ABI_REVISION})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(TARGET libLLVMExports)
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
|
@ -0,0 +1,58 @@
|
||||||
|
From 93da37dc58e9d1d4a685bcb6a30a9d3ff78733f9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nathan Chancellor <nathan@kernel.org>
|
||||||
|
Date: Wed, 28 Jul 2021 21:56:23 -0700
|
||||||
|
Subject: [PATCH] [test] Fix tools/gold/X86/comdat-nodeduplicate.ll on non-X86
|
||||||
|
hosts
|
||||||
|
|
||||||
|
When running this test on an aarch64 machine, it fails:
|
||||||
|
|
||||||
|
```
|
||||||
|
/usr/bin/ld.gold: error: .../test/tools/gold/X86/Output/comdat-nodeduplicate.ll.tmp/ab.lto.o: incompatible target
|
||||||
|
```
|
||||||
|
|
||||||
|
Specify the elf_x86_64 emulation as all of the other gold plugin tests
|
||||||
|
do.
|
||||||
|
|
||||||
|
Reviewed By: MaskRay
|
||||||
|
|
||||||
|
Differential Revision: https://reviews.llvm.org/D107020
|
||||||
|
|
||||||
|
(cherry picked from commit 5060224d9eed8b8359ed5090bb7c577b8575e9e7)
|
||||||
|
---
|
||||||
|
llvm/test/tools/gold/X86/comdat-nodeduplicate.ll | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/llvm/test/tools/gold/X86/comdat-nodeduplicate.ll b/llvm/test/tools/gold/X86/comdat-nodeduplicate.ll
|
||||||
|
index 11d04d2aab1f..c27d91a1d437 100644
|
||||||
|
--- a/llvm/test/tools/gold/X86/comdat-nodeduplicate.ll
|
||||||
|
+++ b/llvm/test/tools/gold/X86/comdat-nodeduplicate.ll
|
||||||
|
@@ -8,7 +8,7 @@
|
||||||
|
; RUN: llvm-as %t/b.ll -o %t/b.bc
|
||||||
|
; RUN: llvm-as %t/c.ll -o %t/c.bc
|
||||||
|
|
||||||
|
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext --plugin-opt=save-temps \
|
||||||
|
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext --plugin-opt=save-temps \
|
||||||
|
; RUN: -u foo %t/a.bc --start-lib %t/b.bc --end-lib -o %t/ab
|
||||||
|
|
||||||
|
; RUN: FileCheck %s --check-prefix=RESOL_AB < %t/ab.resolution.txt
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
; DATA: 0x[[#%x,]] 01000000 00000000 ........
|
||||||
|
|
||||||
|
;; __profc_foo from c.bc is non-prevailing and thus discarded.
|
||||||
|
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext --plugin-opt=save-temps \
|
||||||
|
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext --plugin-opt=save-temps \
|
||||||
|
; RUN: -u foo -u c %t/a.bc --start-lib %t/b.bc %t/c.bc --end-lib -o %t/abc
|
||||||
|
; RUN: FileCheck %s --check-prefix=RESOL_ABC < %t/abc.resolution.txt
|
||||||
|
; RUN: llvm-readelf -x .data %t/abc | FileCheck %s --check-prefix=DATA
|
||||||
|
@@ -35,7 +35,7 @@
|
||||||
|
; RUN: opt --module-summary %t/b.ll -o %t/b.bc
|
||||||
|
; RUN: opt --module-summary %t/c.ll -o %t/c.bc
|
||||||
|
|
||||||
|
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
|
||||||
|
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
|
||||||
|
; RUN: -u foo %t/a.bc --start-lib %t/b.bc %t/c.bc --end-lib -o %t/abc
|
||||||
|
; RUN: llvm-readelf -x .data %t/abc | FileCheck %s --check-prefix=DATA
|
||||||
|
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,2 @@
|
||||||
|
SHA512 (llvm-13.0.0rc1.src.tar.xz) = 307d8162f905b92e33f27c7a75f78d1020a63c24a13d4befa4dd7b6ed90607919183919df9a626f705935dfccce3d36c2b99b9575bfc6f23f8df115374fa6823
|
||||||
|
SHA512 (llvm-13.0.0rc1.src.tar.xz.sig) = 6b49f7b96a5ee0634d328cfaa6d47820cf89ee3363553670b46c7d3c071c3f624ee10f663315f31c03965a43177baccaaa0e88a75b4cfadeb3783b1d83c850b3
|
Binary file not shown.
Loading…
Reference in New Issue