- Update to version 2.35.1
* mold guarantees that outputs are reproducible, meaning that if you provide the exact same set of input files and command-line options to the same version of mold, the output is assured to be byte-for-byte identical. However, there was a bug where the --icf option caused outputs to be indeterministic, even though all possible outputs were logically correct (#1377). This issue has now been resolved. (2a78b1b) * [RISC-V] Support for obsolete GP-relative relocations has been removed. These relocations were ratified (riscv-non-isa/riscv-elf-psabi-doc@d49e480) but then removed (riscv-non-isa/riscv-elf-psabi-doc@ad02546) from the processor-specific ABI. There are no known real-world use cases for these relocations. (04066d1) OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=134
This commit is contained in:
commit
9909d0586b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
7
_constraints
Normal file
7
_constraints
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<constraints>
|
||||||
|
<hardware>
|
||||||
|
<memoryperjob>
|
||||||
|
<size unit="M">1800</size>
|
||||||
|
</memoryperjob>
|
||||||
|
</hardware>
|
||||||
|
</constraints>
|
13
build-blake-3-as-static.patch
Normal file
13
build-blake-3-as-static.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/third-party/blake3/c/CMakeLists.txt b/third-party/blake3/c/CMakeLists.txt
|
||||||
|
index ebcca1db..4c7508aa 100644
|
||||||
|
--- a/third-party/blake3/c/CMakeLists.txt
|
||||||
|
+++ b/third-party/blake3/c/CMakeLists.txt
|
||||||
|
@@ -111,7 +111,7 @@ endif()
|
||||||
|
mark_as_advanced(BLAKE3_SIMD_TYPE)
|
||||||
|
|
||||||
|
# library target
|
||||||
|
-add_library(blake3
|
||||||
|
+add_library(blake3 STATIC
|
||||||
|
blake3.c
|
||||||
|
blake3_dispatch.c
|
||||||
|
blake3_portable.c
|
3
mold-2.32.1.tar.gz
Normal file
3
mold-2.32.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f3c9a527d884c635834fe7d79b3de959b00783bf9446280ea274d996f0335825
|
||||||
|
size 10010384
|
3
mold-2.33.0.tar.gz
Normal file
3
mold-2.33.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:37b3aacbd9b6accf581b92ba1a98ca418672ae330b78fe56ae542c2dcb10a155
|
||||||
|
size 10061838
|
3
mold-2.34.1.tar.gz
Normal file
3
mold-2.34.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a8cf638045b4a4b2697d0bcc77fd96eae93d54d57ad3021bf03b0333a727a59d
|
||||||
|
size 10057683
|
3
mold-2.35.0.tar.gz
Normal file
3
mold-2.35.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2703f1c88c588523815886478950bcae1ef02190dc4787e0d120a293b1a46e3b
|
||||||
|
size 10056856
|
3
mold-2.35.1.tar.gz
Normal file
3
mold-2.35.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:912b90afe7fde03e53db08d85a62c7b03a57417e54afc72c08e2fa07cab421ff
|
||||||
|
size 10094602
|
1000
mold.changes
Normal file
1000
mold.changes
Normal file
File diff suppressed because it is too large
Load Diff
114
mold.spec
Normal file
114
mold.spec
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
#
|
||||||
|
# spec file for package mold
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: mold
|
||||||
|
Version: 2.35.1
|
||||||
|
Release: 0
|
||||||
|
Summary: A Modern Linker (mold)
|
||||||
|
License: MIT
|
||||||
|
Group: Development/Tools/Building
|
||||||
|
URL: https://github.com/rui314/mold
|
||||||
|
Source: https://github.com/rui314/mold/archive/v%{version}/mold-%{version}.tar.gz
|
||||||
|
Patch0: build-blake-3-as-static.patch
|
||||||
|
BuildRequires: cmake
|
||||||
|
%if %{suse_version} < 1550
|
||||||
|
BuildRequires: gcc11-c++
|
||||||
|
%else
|
||||||
|
# These libraries are not present for openSUSE Leap
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: clang
|
||||||
|
BuildRequires: libdwarf-tools
|
||||||
|
BuildRequires: llvm
|
||||||
|
BuildRequires: llvm-gold
|
||||||
|
BuildRequires: tbb-devel
|
||||||
|
%ifarch x86_64
|
||||||
|
BuildRequires: gcc-32bit
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
BuildRequires: gdb
|
||||||
|
BuildRequires: glibc-devel-static
|
||||||
|
BuildRequires: libzstd-devel
|
||||||
|
%ifnarch ppc64
|
||||||
|
BuildRequires: valgrind
|
||||||
|
%endif
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: zstd
|
||||||
|
PreReq: update-alternatives
|
||||||
|
|
||||||
|
%if %{suse_version} < 1600
|
||||||
|
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}
|
||||||
|
%else
|
||||||
|
%define build_args -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_MIMALLOC=OFF -DMOLD_USE_SYSTEM_TBB=ON
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
mold is a faster drop-in replacement for existing Unix linkers.
|
||||||
|
It is several times faster than LLVM lld linker, the second-fastest
|
||||||
|
open-source linker.
|
||||||
|
mold is created for increasing developer productivity by reducing
|
||||||
|
build time especially in rapid debug-edit-rebuild cycles.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%if %{suse_version} < 1550
|
||||||
|
export CC=gcc-11
|
||||||
|
export CXX=g++-11
|
||||||
|
%endif
|
||||||
|
%cmake %{build_args}
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{suse_version} < 1550
|
||||||
|
export TEST_CC=gcc-11
|
||||||
|
export TEST_CXX=g++-11
|
||||||
|
%endif
|
||||||
|
%ctest
|
||||||
|
|
||||||
|
%post
|
||||||
|
"%_sbindir/update-alternatives" --install \
|
||||||
|
"%_bindir/ld" ld "%_bindir/ld.mold" 1
|
||||||
|
|
||||||
|
%pre
|
||||||
|
if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then
|
||||||
|
"%_sbindir/update-alternatives" --remove ld "%_bindir/ld.mold";
|
||||||
|
fi;
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ ! -f %{_bindir}/lld ] ; then
|
||||||
|
"%{_sbindir}/update-alternatives" --remove ld "%{_bindir}/ld.mold"
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files
|
||||||
|
%ghost %_sysconfdir/alternatives/ld
|
||||||
|
%{_bindir}/mold
|
||||||
|
%{_bindir}/ld.mold
|
||||||
|
%dir %{_libdir}/mold
|
||||||
|
%{_libexecdir}/mold/ld
|
||||||
|
%dir %{_libexecdir}/mold
|
||||||
|
%{_libdir}/mold/mold-wrapper.so
|
||||||
|
%{_mandir}/man1/mold.1.gz
|
||||||
|
%{_mandir}/man1/ld.mold.1.gz
|
||||||
|
%dir %{_docdir}/mold
|
||||||
|
%doc %{_docdir}/mold/LICENSE
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user