<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/robimarko/include/hardened-ld-pie.specs, branch master</title>
<subtitle>Staging tree of Robert Marko</subtitle>
<id>https://git.openwrt.org/openwrt/staging/robimarko/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/robimarko/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/'/>
<updated>2018-01-27T15:46:45Z</updated>
<entry>
<title>build: add hardened builds with PIE (ASLR) support</title>
<updated>2018-01-27T15:46:45Z</updated>
<author>
<name>Julien Dusser</name>
</author>
<published>2018-01-08T22:47:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/robimarko/commit/?id=df0bd42fdeb76c9bc51b816c3df699db123c0024'/>
<id>urn:sha1:df0bd42fdeb76c9bc51b816c3df699db123c0024</id>
<content type='text'>
Introduce a configuration option to build a "hardened" OpenWrt with
ASLR PIE support.

Add new option PKG_ASLR_PIE to enable Address Space Layout Randomization (ASLR)
by building Position Independent Executables (PIE). This new option protects
against "return-to-text" attacks.

Busybox need a special care, link is done with ld, not gcc, leading to
unknown flags. Set BUSYBOX_DEFAULT_PIE instead and disable PKG_ASLR_PIE.

If other failing packages were found, PKG_ASLR_PIE:=0 should be added to
their Makefiles.

Original Work by: Yongkui Han &lt;yonhan@cisco.com&gt;
Signed-off-by: Julien Dusser &lt;julien.dusser@free.fr&gt;
</content>
</entry>
</feed>
