File uwsgi-ld-noexecstack.patch of Package uwsgi

---
 uwsgiconfig.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: uwsgi-2.0.31/uwsgiconfig.py
===================================================================
--- uwsgi-2.0.31.orig/uwsgiconfig.py	2025-10-20 11:57:37.196618275 +0200
+++ uwsgi-2.0.31/uwsgiconfig.py	2025-10-20 11:57:57.507143684 +0200
@@ -1464,7 +1464,7 @@
             gcc_list.append(path + '/' + cfile)
     for bfile in up.get('BINARY_LIST', []):
         try:
-            binary_link_cmd = "ld -r -b binary -o %s/%s.o %s/%s" % (path, bfile[1], path, bfile[1])
+            binary_link_cmd = "ld -z noexecstack -r -b binary -o %s/%s.o %s/%s" % (path, bfile[1], path, bfile[1])
             print(binary_link_cmd)
             if subprocess.call(binary_link_cmd, shell=True) != 0:
                 raise Exception('unable to link binary file')
openSUSE Build Service is sponsored by