openblas/Link-library-with-z-noexecstack.patch
Egbert Eich 0f2e101f5c - Update to version 0.3.27 (jsc#PED-9676):
* General:
    + Reworked the unfinished implementation of `HUGETLB` from GotoBLAS
      for allocating huge memory pages as buffers on suitable systems.
    + Changed the unfinished implementation of `GEMM3M` for the generic
      target on all architectures to at least forward to regular GEMM.
    + Improved multithreaded `GEMM` performance for large non-skinny
      matrices.
    + Improved BLAS3 performance on larger multicore systems through
      improved parallelism.
    + Improved performance of the initial memory allocation by reducing
      locking overhead.
    + Improved performance of `GBMV` at small problem sizes by introducing
      a size barrier for the switch to multithreading.
    + Added an implementation of the `CBLAS_GEMM_BATCH` extension.
    + Fixed corner cases involving the handling of NAN and INFINITY
      arguments in `?SCAL` on all architectures.
    + Fixed NAN handling and potential accuracy issues in compilations
      with Intel ICX by supplying a suitable fp-model option by default.
    + It is now possible to register a callback function that replaces
      the built-in support for multithreading with an external backend
      like TBB (`openblas_set_threads_callback_function`).
    + Fixed potential duplication of suffixes in shared library naming.
    + Improved C compiler detection by the build system to tolerate
      more naming variants for gcc builds.
    + Fixed an unnecessary dependency of the utest on CBLAS.
    + Fixed spurious error reports from the BLAS extensions `utest`.
    + Fixed unwanted invocation of the `GEMM3M` tests in cross-
      compilation.
    + Fixed a flaw in the makefile build that could lead to the

OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=184
2025-01-02 16:50:32 +00:00

25 lines
892 B
Diff

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
@@ -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.