Package: dpkg-dev Version: 1.18.6 Severity: normal Tags: patch User: debian-bsd@lists.debian.org Usertags: kfreebsd
Hi Guillem, Please allow dpkg-buildflags to use PIE on kfreebsd. Due to an ancient bug (#430455) it remains disabled. But kfreebsd-10, -9 and probably -8 support PIE binaries. kfreebsd (upstream kernel) doesn't implement ASLR yet, but when it does, I'd like as many binaries as possible to be already compiled as PIE. Thanks a lot! --- a/scripts/Dpkg/Vendor/Debian.pm 2016-05-09 08:56:46.000000000 +0000 +++ b/scripts/Dpkg/Vendor/Debian.pm 2016-05-09 22:06:52.743169571 +0000 @@ -271,9 +271,8 @@ $self->_parse_feature_area('hardening', \%use_feature); # Mask features that are not available on certain architectures. - if ($os !~ /^(?:linux|knetbsd|hurd)$/ or + if ($os !~ /^(?:linux|kfreebsd|knetbsd|hurd)$/ or $cpu =~ /^(?:hppa|avr32)$/) { - # Disabled on non-linux/knetbsd/hurd (see #430455 and #586215). # Disabled on hppa, avr32 # (#574716). $use_feature{pie} = 0; -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 10.1-0-amd64 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init)