Re: [OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default

2019-02-23 Thread Hauke Mehrtens
On 2/23/19 4:36 PM, Dave Taht wrote: > Hauke Mehrtens writes: > >> On 2/13/19 11:51 PM, Felix Fietkau wrote: >>> On 2019-02-13 23:15, Hauke Mehrtens wrote: This will build all executable as Position Independent Executables (PIE) by default. PIE executable can make full use of Address Sp

Re: [OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default

2019-02-23 Thread Dave Taht
Hauke Mehrtens writes: > On 2/13/19 11:51 PM, Felix Fietkau wrote: >> On 2019-02-13 23:15, Hauke Mehrtens wrote: >>> This will build all executable as Position Independent Executables (PIE) >>> by default. PIE executable can make full use of Address Space Layout >>> Randomization (ASLR) because a

Re: [OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default

2019-02-22 Thread Hauke Mehrtens
On 2/13/19 11:51 PM, Felix Fietkau wrote: > On 2019-02-13 23:15, Hauke Mehrtens wrote: >> This will build all executable as Position Independent Executables (PIE) >> by default. PIE executable can make full use of Address Space Layout >> Randomization (ASLR) because all sections can be placed at ra

Re: [OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default

2019-02-13 Thread Daniel Engberg
Hi, PIE adds overhead (it can be quite a bit) both to binary size and performance during execution. There are usually discussions about kilobytes and this is well beyond that and space is still quite precious on 8/16Mbyte flash devices. Most target platforms are "slow" and have limited space to b

Re: [OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default

2019-02-13 Thread Felix Fietkau
On 2019-02-13 23:15, Hauke Mehrtens wrote: > This will build all executable as Position Independent Executables (PIE) > by default. PIE executable can make full use of Address Space Layout > Randomization (ASLR) because all sections can be placed at random > offsets of the executed program. This ma

[OpenWrt-Devel] [PATCH] build: Activate ASLR PIE by default

2019-02-13 Thread Hauke Mehrtens
This will build all executable as Position Independent Executables (PIE) by default. PIE executable can make full use of Address Space Layout Randomization (ASLR) because all sections can be placed at random offsets of the executed program. This makes it harder to exploit bugs in our binaries. Thi