openblas/Link-library-with-z-noexecstack.patch

25 lines
892 B
Diff
Raw Permalink Normal View History

Accepting request 1039250 from home:eeich:branches:science - Update to v0.3.21: * general: - Updated the included LAPACK to Reference-LAPACK release 3.10.1 - when no Fortran compiler is available, OpenBLAS builds will now automatically - function LAPACKE_lsame is now annotated with the GCC attribute "const" to aid static analyzers - added USE_TLS to the list of options reported by the openblas_get_config() function - added SYMBOLPREFIX/SYMBOLSUFFIX handling for LAPACK 3.10.0 functions added in 0.3.20 - reverted OpenMP threadpool behaviour in the exec_blas call to its state before 0.3.11, that is the threadpool will no longer grow or shrink on demand as the overhead for this is too big at least with GNU OpenMP. The adaptive behaviour introduced in 0.3.11 can still be requested at runtime by setting the environment variable OMP_ADAPTIVE - worked around spurious STFSM/CTFSM errors reported by the LAPACK testsuite * x86_64: - fixed determination of compiler support for AVX512 and removed the 0.3.19 - workaround for building SKYLAKEX kernels on Sandybridge hardware - fixed compilation for the SKYLAKEX target with gcc 6 - fixed compilation of the SkyLakeX small matrix GEMM kernels with LLVM or ICC - added support for the Zhaoxin/Centaur KH40000 cpu - fixed a potential crash in the ZSYMV kernel used for all targets except generic * POWER: - worked around an overflow error in the POWER6 DNRM2 kernel - fixed compilation on PPC440 - fixed a performance regression in the level1 BLAS on POWER10 - fixed the POWER10 ZGEMM kernel - fixed singlethreaded builds for POWER10 - fixed compilation of the POWER10 DGEMV kernel with older gcc versions - enabled compilation of the BFLOAT16 kernels by default - enabled the small matrix kernels by default for DYNAMIC_ARCH builds - added a workaround for a miscompilation of the CDOT and ZDOT kernels by GCC 12 - Obsolete: OBS-URL: https://build.opensuse.org/request/show/1039250 OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=146
2022-12-01 14:36:16 +01:00
From: Egbert Eich <eich@suse.com>
Date: Wed Nov 30 20:16:21 2022 +0100
Subject: Link library with -z,noexecstack
Patch-mainline: Not yet
Git-commit: adddc0eadc81bcd29c48594793cb33eac0edb572
References:
Signed-off-by: Egbert Eich <eich@suse.com>
Signed-off-by: Egbert Eich <eich@suse.de>
---
exports/Makefile | 1 +
1 file changed, 1 insertion(+)
Index: OpenBLAS-0.3.25/exports/Makefile
===================================================================
--- OpenBLAS-0.3.25.orig/exports/Makefile
+++ OpenBLAS-0.3.25/exports/Makefile
Accepting request 1039250 from home:eeich:branches:science - Update to v0.3.21: * general: - Updated the included LAPACK to Reference-LAPACK release 3.10.1 - when no Fortran compiler is available, OpenBLAS builds will now automatically - function LAPACKE_lsame is now annotated with the GCC attribute "const" to aid static analyzers - added USE_TLS to the list of options reported by the openblas_get_config() function - added SYMBOLPREFIX/SYMBOLSUFFIX handling for LAPACK 3.10.0 functions added in 0.3.20 - reverted OpenMP threadpool behaviour in the exec_blas call to its state before 0.3.11, that is the threadpool will no longer grow or shrink on demand as the overhead for this is too big at least with GNU OpenMP. The adaptive behaviour introduced in 0.3.11 can still be requested at runtime by setting the environment variable OMP_ADAPTIVE - worked around spurious STFSM/CTFSM errors reported by the LAPACK testsuite * x86_64: - fixed determination of compiler support for AVX512 and removed the 0.3.19 - workaround for building SKYLAKEX kernels on Sandybridge hardware - fixed compilation for the SKYLAKEX target with gcc 6 - fixed compilation of the SkyLakeX small matrix GEMM kernels with LLVM or ICC - added support for the Zhaoxin/Centaur KH40000 cpu - fixed a potential crash in the ZSYMV kernel used for all targets except generic * POWER: - worked around an overflow error in the POWER6 DNRM2 kernel - fixed compilation on PPC440 - fixed a performance regression in the level1 BLAS on POWER10 - fixed the POWER10 ZGEMM kernel - fixed singlethreaded builds for POWER10 - fixed compilation of the POWER10 DGEMV kernel with older gcc versions - enabled compilation of the BFLOAT16 kernels by default - enabled the small matrix kernels by default for DYNAMIC_ARCH builds - added a workaround for a miscompilation of the CDOT and ZDOT kernels by GCC 12 - Obsolete: OBS-URL: https://build.opensuse.org/request/show/1039250 OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=146
2022-12-01 14:36:16 +01:00
@@ -193,6 +193,7 @@ else ifeq ($(F_COMPILER), FLANG)
else
ifneq ($(C_COMPILER), LSB)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
+ -Wl,-z,noexecstack \
-Wl,--whole-archive $< -Wl,--no-whole-archive \
-Wl,-soname,$(INTERNALNAME) $(EXTRALIB)
$(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.