Przeglądaj źródła

dpkg-buildflags: Remove arch blacklist from stackprotectorstrong option

As of gcc-defaults 1.130 all architectures have moved to GCC 4.9, so we
can remove the architecture blacklist for stackprotectorstrong.

Signed-off-by: Guillem Jover <guillem@debian.org>
Romain Francoise 12 lat temu
rodzic
commit
4f73dc68e8
2 zmienionych plików z 2 dodań i 6 usunięć
  1. 2 0
      debian/changelog
  2. 0 6
      scripts/Dpkg/Vendor/Debian.pm

+ 2 - 0
debian/changelog

@@ -3,6 +3,8 @@ dpkg (1.17.13) UNRELEASED; urgency=low
   [ Guillem Jover ]
   * Remove unbalanced trailing single-quote in dpkg-deb error message.
     Reported by Trần Ngọc Quân <vnwildman@gmail.com>.
+  * Remove architecture blacklist from hardening build flag option
+    stackprotectorstrong. Thanks to Romain Francoise <rfrancoise@debian.org>.
 
   [ Updated programs translations ]
   * Czech (Miroslav Kure).

+ 0 - 6
scripts/Dpkg/Vendor/Debian.pm

@@ -137,12 +137,6 @@ sub add_hardening_flags {
 	#   compiler supports it incorrectly (leads to SEGV)
 	$use_feature{stackprotector} = 0;
     }
-    if ($arch =~ /^(?:m68k|or1k|powerpcspe|sh4|x32)$/) {
-	# "Strong" stack protector disabled on m68k, or1k, powerpcspe, sh4, x32.
-	#   It requires GCC 4.9 and these archs are still using 4.8 as of
-	#   gcc-defaults 1.128.
-	$use_feature{stackprotectorstrong} = 0;
-    }
     if ($cpu =~ /^(?:ia64|hppa|avr32)$/) {
 	# relro not implemented on ia64, hppa, avr32.
 	$use_feature{relro} = 0;