From c291feaf4a498411c4a83ae953c98c1454c74168bee75ef7648d304ff2727c4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Wed, 22 Feb 2023 08:39:07 +0000 Subject: [PATCH 1/2] Accepting request 1067052 from home:marxin:branches:devel:gcc - Enable zstd compression algorithm (instead of zlib) for debug info sections by default. OBS-URL: https://build.opensuse.org/request/show/1067052 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=435 --- binutils.changes | 6 ++++++ binutils.spec | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/binutils.changes b/binutils.changes index 59a066f..4fca8c0 100644 --- a/binutils.changes +++ b/binutils.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 21 15:32:02 UTC 2023 - Martin Liška + +- Enable zstd compression algorithm (instead of zlib) + for debug info sections by default. + ------------------------------------------------------------------- Mon Jan 30 09:18:59 UTC 2023 - Martin Liška diff --git a/binutils.spec b/binutils.spec index 72394e8..ef32ed7 100644 --- a/binutils.spec +++ b/binutils.spec @@ -61,6 +61,9 @@ BuildRequires: zlib-devel-static %else BuildRequires: zlib-devel %endif +%if %{suse_version} > 1500 +BuildRequires: libzstd-devel +%endif Version: 2.40 Release: 0 @@ -362,6 +365,9 @@ cd build-dir %endif %if %{suse_version} > 1320 --enable-compressed-debug-sections=gas \ +%if %{suse_version} > 1550 + --enable-default-compressed-debug-sections-algorithm=zstd \ +%endif %endif %if %{suse_version} < 1550 --disable-x86-used-note \ From 488080e211511b5f33fdae3fa474739bf4f2656491eabf4e05b09501241c25fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Thu, 23 Feb 2023 09:15:27 +0000 Subject: [PATCH 2/2] Accepting request 1067335 from home:marxin:branches:devel:gcc - Disable ZSTD debug section compress by default. OBS-URL: https://build.opensuse.org/request/show/1067335 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=436 --- binutils.changes | 5 +++++ binutils.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/binutils.changes b/binutils.changes index 4fca8c0..1fd6f25 100644 --- a/binutils.changes +++ b/binutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 23 09:11:50 UTC 2023 - Martin Liška + +- Disable ZSTD debug section compress by default. + ------------------------------------------------------------------- Tue Feb 21 15:32:02 UTC 2023 - Martin Liška diff --git a/binutils.spec b/binutils.spec index ef32ed7..e9649d4 100644 --- a/binutils.spec +++ b/binutils.spec @@ -365,9 +365,6 @@ cd build-dir %endif %if %{suse_version} > 1320 --enable-compressed-debug-sections=gas \ -%if %{suse_version} > 1550 - --enable-default-compressed-debug-sections-algorithm=zstd \ -%endif %endif %if %{suse_version} < 1550 --disable-x86-used-note \ @@ -391,6 +388,11 @@ cd build-dir --enable-warn-execstack=yes \ --enable-warn-rwx-segments=yes +#FIXME: enable in the future +#%if %{suse_version} > 1550 +# --enable-default-compressed-debug-sections-algorithm=zstd \ +#%endif + # we patch headers (bfd-in.h) that are input to other headers # which are generated only with --enable-maintainer-mode (which we # don't do) or explicitely by make headers, so do this: