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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=370e30b6f9bc0ca0c5b24a02aa9127fa5f8d9367;p=binutils-gdb.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 bc21207ce17..75fda65ab56 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 63d0974c6ad..5aadc5528a3 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;