aboutsummaryrefslogtreecommitdiff
path: root/gold/plugin.cc
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2012-06-12 22:52:41 +0000
committerRafael Ávila de Espíndola <respindola@mozilla.com>2012-06-12 22:52:41 +0000
commit370e30b6f9bc0ca0c5b24a02aa9127fa5f8d9367 (patch)
treee34a92f9ad24bf92b8e5ae0cc9c2dcbcc68093d5 /gold/plugin.cc
parent2202d7cd99f78692544dfe0b001375a4f8143952 (diff)
downloadgdb-370e30b6f9bc0ca0c5b24a02aa9127fa5f8d9367.zip
gdb-370e30b6f9bc0ca0c5b24a02aa9127fa5f8d9367.tar.gz
gdb-370e30b6f9bc0ca0c5b24a02aa9127fa5f8d9367.tar.bz2
2012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com>
* plugin.cc (Plugin::load): Handle position independent executables.
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r--gold/plugin.cc2
1 files changed, 2 insertions, 0 deletions
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;