From 6167489e3864b5a8c5a36572c81b60cdc8a604ea87a1a51b738f642c75720542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Wed, 17 Aug 2022 08:04:50 +0000 Subject: [PATCH 1/4] - Use proper CC/CXX for make_install. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=62 --- mold.changes | 5 +++++ mold.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/mold.changes b/mold.changes index 1cbb7da..e231054 100644 --- a/mold.changes +++ b/mold.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 17 08:04:28 UTC 2022 - Martin Liška + +- Use proper CC/CXX for make_install. + ------------------------------------------------------------------- Fri Aug 5 16:54:51 UTC 2022 - Martin Liška diff --git a/mold.spec b/mold.spec index a94bbf9..97ded5c 100644 --- a/mold.spec +++ b/mold.spec @@ -82,6 +82,10 @@ LIBEXECDIR=%{_libexecdir} \ %{build_args} %install +%if %{suse_version} < 1550 +export CC=gcc-10 +export CXX=g++-10 +%endif %make_install -e \ PREFIX=%{_prefix} \ BINDIR=%{_bindir} \ From 700de69a5e63559a1a75c742a06191c59125739aefbbb0c818a59af2735e19c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Wed, 17 Aug 2022 08:10:49 +0000 Subject: [PATCH 2/4] Set CC/CXX for tests. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=63 --- mold.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mold.spec b/mold.spec index 97ded5c..e12634a 100644 --- a/mold.spec +++ b/mold.spec @@ -96,7 +96,9 @@ LIBEXECDIR=%{_libexecdir} \ %check %if %{suse_version} < 1550 +export CC=gcc-10 export TEST_CC=gcc-10 +export CXX=g++-10 export TEST_CXX=g++-10 %endif make test -k -e \ From 03302731ce4a58bb2d6ef6965442ac345d655805866a441fba6938d442bc119e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Wed, 17 Aug 2022 09:08:01 +0000 Subject: [PATCH 3/4] Revert last change. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=64 --- mold.changes | 5 ----- mold.spec | 6 ------ 2 files changed, 11 deletions(-) diff --git a/mold.changes b/mold.changes index e231054..1cbb7da 100644 --- a/mold.changes +++ b/mold.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Wed Aug 17 08:04:28 UTC 2022 - Martin Liška - -- Use proper CC/CXX for make_install. - ------------------------------------------------------------------- Fri Aug 5 16:54:51 UTC 2022 - Martin Liška diff --git a/mold.spec b/mold.spec index e12634a..a94bbf9 100644 --- a/mold.spec +++ b/mold.spec @@ -82,10 +82,6 @@ LIBEXECDIR=%{_libexecdir} \ %{build_args} %install -%if %{suse_version} < 1550 -export CC=gcc-10 -export CXX=g++-10 -%endif %make_install -e \ PREFIX=%{_prefix} \ BINDIR=%{_bindir} \ @@ -96,9 +92,7 @@ LIBEXECDIR=%{_libexecdir} \ %check %if %{suse_version} < 1550 -export CC=gcc-10 export TEST_CC=gcc-10 -export CXX=g++-10 export TEST_CXX=g++-10 %endif make test -k -e \ From d858a8843c52c5e24712e3eba510359d226a3fbec5e733fd1156d8ec44035a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Thu, 18 Aug 2022 09:35:19 +0000 Subject: [PATCH 4/4] - Update to version 1.4.1 * mold/macOS is now available as an alpha feature. We do not recommend using it for anything serious though. Starting from this version, we accept not only mold/Unix issues but also mold/macOS ones on our GitHub Issues. Feel free to file a bug if you encounter any problem. * We started supporting CMake in addition to Make to build mold. Our long-term plan is to migrate from Make to CMake because we want to support Windows eventually and CMake provides a better Windows support than Make does. (e6a0e67) * There was a bug that mold accidentally exported a hidden symbol from an executable if a shared library linked to that executable happened to define the same symbol. This caused a build issue with Blender (#606). The bug has been fixed. (b163068) --hash-style=both is now the default if no --hash-style option is given. Previously, --hash-style=sysv was the default. This change shouldn't affect most users because the compiler driver (cc, gcc, clang, etc.) always passes --hash-style to the linker. We made this change because GNU ld defaults to --hash-style=both. * Alias symbols defined by the --defsym option now have the same scope as the aliased symbols. Previously, alias symbols defined by --defsym were always hidden and never be exported as dynamic symbols. (5dd1227) * mold now accepts foo = bar-style linker script directive to define symbol aliases. Previously, such statement was treated as a syntax error. This change was made to link mariadb-connector-c correctly (f0e1237) * Symbols in mergeable string sections now have correct output section indices instead of SHN_UNDEF. (a595c48) * [ARM32] Previously, calling a function from ARM code to Thumb code caused a program crash due to bug #442. This issue has been fixed. (053b90b) - Run tests in parallel. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=65 --- mold-1.4.0.tar.gz | 3 --- mold-1.4.1.tar.gz | 3 +++ mold.changes | 29 +++++++++++++++++++++++++++++ mold.spec | 7 +++++-- 4 files changed, 37 insertions(+), 5 deletions(-) delete mode 100644 mold-1.4.0.tar.gz create mode 100644 mold-1.4.1.tar.gz diff --git a/mold-1.4.0.tar.gz b/mold-1.4.0.tar.gz deleted file mode 100644 index 1636553..0000000 --- a/mold-1.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c255af236e629a3afb0cd89185a3a944741aa55bfbe966eb175af1c7b6097c0b -size 4722082 diff --git a/mold-1.4.1.tar.gz b/mold-1.4.1.tar.gz new file mode 100644 index 0000000..f861835 --- /dev/null +++ b/mold-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:394036d299c50f936ff77ce9c6cf44a5b24bfcabf65ae7db9679f89c11a70b3f +size 6280266 diff --git a/mold.changes b/mold.changes index 1cbb7da..363debd 100644 --- a/mold.changes +++ b/mold.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Thu Aug 18 09:28:25 UTC 2022 - Martin Liška + +- Update to version 1.4.1 + * mold/macOS is now available as an alpha feature. We do not recommend using it for anything + serious though. Starting from this version, we accept not only mold/Unix issues but also + mold/macOS ones on our GitHub Issues. Feel free to file a bug if you encounter any problem. + * We started supporting CMake in addition to Make to build mold. Our long-term plan is to migrate + from Make to CMake because we want to support Windows eventually and CMake provides + a better Windows support than Make does. (e6a0e67) + * There was a bug that mold accidentally exported a hidden symbol from an executable + if a shared library linked to that executable happened to define the same symbol. + This caused a build issue with Blender (#606). The bug has been fixed. (b163068) + --hash-style=both is now the default if no --hash-style option is given. Previously, + --hash-style=sysv was the default. This change shouldn't affect most users because + the compiler driver (cc, gcc, clang, etc.) always passes --hash-style to the linker. + We made this change because GNU ld defaults to --hash-style=both. + * Alias symbols defined by the --defsym option now have the same scope as the aliased symbols. + Previously, alias symbols defined by --defsym were always hidden and never + be exported as dynamic symbols. (5dd1227) + * mold now accepts foo = bar-style linker script directive to define symbol aliases. + Previously, such statement was treated as a syntax error. + This change was made to link mariadb-connector-c correctly (f0e1237) + * Symbols in mergeable string sections now have correct output section + indices instead of SHN_UNDEF. (a595c48) + * [ARM32] Previously, calling a function from ARM code to Thumb code + caused a program crash due to bug #442. This issue has been fixed. (053b90b) +- Run tests in parallel. + ------------------------------------------------------------------- Fri Aug 5 16:54:51 UTC 2022 - Martin Liška diff --git a/mold.spec b/mold.spec index a94bbf9..37c4e71 100644 --- a/mold.spec +++ b/mold.spec @@ -17,7 +17,7 @@ Name: mold -Version: 1.4.0 +Version: 1.4.1 Release: 0 Summary: A Modern Linker (mold) License: AGPL-3.0-or-later @@ -95,7 +95,7 @@ LIBEXECDIR=%{_libexecdir} \ export TEST_CC=gcc-10 export TEST_CXX=g++-10 %endif -make test -k -e \ +%make_build test -k -e \ PREFIX=%{_prefix} \ BINDIR=%{_bindir} \ MANDIR=%{_mandir} \ @@ -127,5 +127,8 @@ fi %dir %{_libexecdir}/mold %{_libdir}/mold/mold-wrapper.so %{_mandir}/man1/mold.1.gz +%{_mandir}/man1/ld.mold.1.gz +%dir /usr/share/doc/mold +%doc /usr/share/doc/mold/LICENSE %changelog