From: Rafael Ávila de Espíndola Date: Tue, 12 Jun 2012 22:52:41 +0000 (+0000) Subject: 2012-06-12 Rafael Ávila de Espíndola X-Git-Tag: sid-snapshot-20120701~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=370e30b6f9bc0ca0c5b24a02aa9127fa5f8d9367;p=external%2Fbinutils.git 2012-06-12 Rafael Ávila de Espíndola * plugin.cc (Plugin::load): Handle position independent executables. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index bc21207..75fda65 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,7 @@ +2012-06-12 Rafael Ávila de Espíndola + + * plugin.cc (Plugin::load): Handle position independent executables. + 2012-06-06 Cary Coutant * layout.cc (gdb_sections): Remove ".debug_" prefixes, diff --git a/gold/plugin.cc b/gold/plugin.cc index 63d0974..5aadc55 100644 --- a/gold/plugin.cc +++ b/gold/plugin.cc @@ -184,6 +184,8 @@ Plugin::load() tv[i].tv_u.tv_val = LDPO_REL; else if (parameters->options().shared()) tv[i].tv_u.tv_val = LDPO_DYN; + else if (parameters->options().pie()) + tv[i].tv_u.tv_val = LDPO_PIE; else tv[i].tv_u.tv_val = LDPO_EXEC;