From 370e30b6f9bc0ca0c5b24a02aa9127fa5f8d9367 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 12 Jun 2012 22:52:41 +0000 Subject: [PATCH] =?utf8?q?2012-06-12=20=20Rafael=20=C3=81vila=20de=20Esp?= =?utf8?q?=C3=ADndola=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * plugin.cc (Plugin::load): Handle position independent executables. --- gold/ChangeLog | 4 ++++ gold/plugin.cc | 2 ++ 2 files changed, 6 insertions(+) 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; -- 2.30.2