Fix text relocations in linux-user targets
authorKirill A. Shutemov <kirill@shutemov.name>
Fri, 11 Sep 2009 23:17:54 +0000 (02:17 +0300)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 12 Sep 2009 13:15:26 +0000 (13:15 +0000)
commitdf70204db53e3611af986f434e74a882bce190ca
tree34ef56820964e67a57bbdd2038f188f001328721
parent5791f45b58d2147a7a642e3fe0eb68f2f265d254
Fix text relocations in linux-user targets

There is a link hack in linux-user which produces an executable that
looks like PIE, but always has text relocations since all object files
isn't position-independent (compiled without -fpic/-fpie). Dynamic loader
has to do more work to load a binary with text relocations.

The best way to keep this functionality is to build a true PIE without
text relocations.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure
linux-user/main.c