Revision: 5274
          http://ipcop.svn.sourceforge.net/ipcop/?rev=5274&view=rev
Author:   gespinasse
Date:     2010-12-24 16:01:29 +0000 (Fri, 24 Dec 2010)

Log Message:
-----------
Learn unzip to create non exec stack, gentoo borrowed again

Modified Paths:
--------------
    ipcop/trunk/lfs/unzip

Added Paths:
-----------
    ipcop/trunk/src/patches/unzip-6.0_no-exec-stack.patch

Modified: ipcop/trunk/lfs/unzip
===================================================================
--- ipcop/trunk/lfs/unzip       2010-12-24 14:30:11 UTC (rev 5273)
+++ ipcop/trunk/lfs/unzip       2010-12-24 16:01:29 UTC (rev 5274)
@@ -81,6 +81,8 @@
 $(TARGET) : $(firstword $(MAKEFILE_LIST)) $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       # fix exec stack
+       cd $(DIR_APP) && patch -Np1 -i 
$(DIR_PATCHES)/$(PKG_NAME)-6.0_no-exec-stack.patch
 
 ifeq "$(MACHINE)" "i486"
        # Workaround for (fatal) warning because of missing lchmod

Added: ipcop/trunk/src/patches/unzip-6.0_no-exec-stack.patch
===================================================================
--- ipcop/trunk/src/patches/unzip-6.0_no-exec-stack.patch                       
        (rev 0)
+++ ipcop/trunk/src/patches/unzip-6.0_no-exec-stack.patch       2010-12-24 
16:01:29 UTC (rev 5274)
@@ -0,0 +1,14 @@
+Gentoo borrowed
+Make sure that the asm files don't incorrectly trigger an executable
+stack marking in the final shared library.  That's bad, mmmkay.
+
+--- unzip/crc_i386.S
++++ unzip/crc_i386.S
+@@ -302,3 +302,7 @@
+ #endif /* i386 || _i386 || _I386 || __i386 */
+ 
+ #endif /* !USE_ZLIB && !CRC_TABLE_ONLY */
++
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to