public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/zstd] rawhide: Pass build flags to the assembler so libzstd keeps IBT/SHSTK markings
@ 2026-11-24 14:30 Rajeev Shrestha
  0 siblings, 0 replies; only message in thread
From: Rajeev Shrestha @ 2026-11-24 14:30 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/zstd
            Branch : rawhide
            Commit : 4e2944c9b5d53b499ddd77bdbacefd1545965f21
            Author : Rajeev Shrestha <rajeev.shrestha@usm.edu>
            Date   : 2026-11-22T23:05:27-06:00
            Stats  : +5/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/zstd/c/4e2944c9b5d53b499ddd77bdbacefd1545965f21?branch=rawhide

            Log:
            Pass build flags to the assembler so libzstd keeps IBT/SHSTK markings

CMake builds lib/decompress/huf_decompress_amd64.S as ASM, which reads
ASMFLAGS rather than CFLAGS, so the file was compiled without
-fcf-protection and the linker dropped the x86 IBT/SHSTK property from
libzstd.so.1. Regressed in 1.5.7-3 with the switch to CMake.

Resolves: rhbz#2581510

Assisted-by: Claude

---
diff --git a/zstd.spec b/zstd.spec
index 5ad4502..0517d13 100644
--- a/zstd.spec
+++ b/zstd.spec
@@ -18,7 +18,7 @@
 
 Name:           zstd
 Version:        1.5.7
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Zstd compression library
 
 License:        BSD-3-Clause OR GPL-2.0-only
@@ -74,6 +74,7 @@ find -name .gitignore -delete
 %patch 1 -p1
 
 %build
+export ASMFLAGS="%{build_cflags}"
 %if !%{with asm}
 export CPPFLAGS=-DZSTD_DISABLE_ASM
 %endif
@@ -146,6 +147,9 @@ make PZSTD_CXX_STD=-std=c++17 -C contrib/pzstd tests check
 %ldconfig_scriptlets -n lib%{name}
 
 %changelog
+* Sun Nov 22 2026 Rajeev Shrestha <rajeev.shrestha@usm.edu> - 1.5.7-7
+- Pass build flags to the assembler so libzstd keeps IBT/SHSTK markings (rhbz#2581510)
+
 * Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.7-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 14:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 14:30 [rpms/zstd] rawhide: Pass build flags to the assembler so libzstd keeps IBT/SHSTK markings Rajeev Shrestha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox