aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-10-27 15:13:30 +0100
committerPetr Štetiar <ynezz@true.cz>2020-01-13 15:34:36 +0100
commita2571f3c81bcfa9a89df57869eed426ec3d4ce06 (patch)
treec205eac473aa315f3de63f76a38522b5dbf3f18d
parent6b2379d048e7bce5148abaf737b3eea8b47fc2ca (diff)
downloadupstream-a2571f3c81bcfa9a89df57869eed426ec3d4ce06.tar.gz
upstream-a2571f3c81bcfa9a89df57869eed426ec3d4ce06.tar.bz2
upstream-a2571f3c81bcfa9a89df57869eed426ec3d4ce06.zip
uhttpd: Activate PIE by default
This activates PIE ASLR support by default when the regular option is selected. This increases the binary size by 39% uncompressed and 21% compressed on MIPS BE. old: 33,189 /usr/sbin/uhttpd 23,016 uhttpd_2019-08-17-6b03f960-4_mips_24kc.ipk new: 46,212 /usr/sbin/uhttpd 27,979 uhttpd_2019-08-17-6b03f960-4_mips_24kc.ipk Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--package/network/services/uhttpd/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/uhttpd/Makefile b/package/network/services/uhttpd/Makefile
index e1418d64c4..36dbe636ae 100644
--- a/package/network/services/uhttpd/Makefile
+++ b/package/network/services/uhttpd/Makefile
@@ -18,6 +18,7 @@ PKG_MIRROR_HASH:=16977c2d7e68f6db3241f874df625af9bd3bafa06fe4499ecb3561c825321e5
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
PKG_LICENSE:=ISC
+PKG_ASLR_PIE_REGULAR:=1
PKG_BUILD_DEPENDS = ustream-ssl
PKG_CONFIG_DEPENDS:= CONFIG_uhttpd_lua