dropbear: Activate PIE by default
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 27 Oct 2019 13:56:27 +0000 (14:56 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 13 Jan 2020 14:34:36 +0000 (15:34 +0100)
This activates PIE ASLR support by default when the regular option is
selected.

This increases the binary size by 18% uncompressed and 17% compressed
on MIPS BE.

old:
164,261 /usr/sbin/dropbear
 85,648 dropbear_2019.78-2_mips_24kc.ipk

new:
194,492 /usr/sbin/dropbear
100,309 dropbear_2019.78-2_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Petr Štetiar <ynezz@true.cz>
package/network/services/dropbear/Makefile

index c55af45428455571d0debaccaf17ef23445a0e64..d92b94915b95ea5e92137152c6281823b53a9935 100644 (file)
@@ -22,6 +22,7 @@ PKG_LICENSE_FILES:=LICENSE libtomcrypt/LICENSE libtommath/LICENSE
 PKG_CPE_ID:=cpe:/a:matt_johnston:dropbear_ssh_server
 
 PKG_BUILD_PARALLEL:=1
+PKG_ASLR_PIE_REGULAR:=1
 PKG_USE_MIPS16:=0
 PKG_FIXUP:=autoreconf