Add configure option to compile user targets as PIE
authorKirill A. Shutemov <kirill@shutemov.name>
Fri, 11 Sep 2009 23:17:55 +0000 (02:17 +0300)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 12 Sep 2009 13:17:45 +0000 (13:17 +0000)
commit34005a0060c176b3025a9e7c5d064615a9f80325
treeef0de28fe1f53d91d10bd9000f1cac5680c1dcb3
parentdf70204db53e3611af986f434e74a882bce190ca
Add configure option to compile user targets as PIE

Build uset targers as true PIE if user want to keep qemu
self-virtualizable.

v5:
  - Split into to patches: drop link hack and add PIE support
  - do not build PIE by default and drop toolchain check

v4:
  - Add test for toolchain if it has proper PIE support

v3:
  - One more pice of the hack was removed
  - Description updated

v2:
  - Add configure options do enable/disable PIE for usermode targets.
    Disabling can be useful if you build uswing toolchain which has
    broken PIE support. PIE for usermode targets enabled by default.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Makefile
Makefile.target
configure