]> granicus.if.org Git - pdns/commit
Make executables position-independent
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 2 Jan 2015 18:28:14 +0000 (19:28 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 20 Jan 2015 10:23:33 +0000 (11:23 +0100)
commitb418d5262ef641559369609980253ad6dbec0c22
tree37e8c97cfb0a0075c64f00f8775d9e0477eb9822
parent075006f992d279bc6f222af254fc733b780a7880
Make executables position-independent

Pass -pie to the linker

before:
ruben@yourmomma: pdns (master %=)$ checksec --file pdns/pdns_server
RELRO           STACK CANARY      NX            PIE             RPATH      RUNPATH      FILE
Full RELRO     Canary found     NX enabled   No PIE         No RPATH   No RUNPATH   pdns/pdns_server
ruben@yourmomma: pdns (master %=)$ checksec --file pdns/pdns_control
RELRO           STACK CANARY      NX            PIE             RPATH      RUNPATH      FILE
Full RELRO     Canary found     NX enabled   No PIE         No RPATH   No RUNPATH   pdns/pdns_control

after:
ruben@yourmomma: pdns (master *%=)$ checksec --file pdns/pdns_control
RELRO           STACK CANARY      NX            PIE             RPATH      RUNPATH      FILE
Full RELRO     Canary found     NX enabled   PIE enabled    No RPATH   No RUNPATH   pdns/pdns_control
ruben@yourmomma: pdns (master *%=)$ checksec --file pdns/pdns_server
RELRO           STACK CANARY      NX            PIE             RPATH      RUNPATH      FILE
Full RELRO     Canary found     NX enabled   PIE enabled    No RPATH   No RUNPATH   pdns/pdns_server

(cherry picked from commit c116f5d4a4e0d7a0cc22844cbd2a3cf267fb1a8e)

Conflicts:
configure.ac
configure.ac