diff options
author | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2012-06-12 22:52:41 +0000 |
---|---|---|
committer | Rafael Ávila de Espíndola <respindola@mozilla.com> | 2012-06-12 22:52:41 +0000 |
commit | 370e30b6f9bc0ca0c5b24a02aa9127fa5f8d9367 (patch) | |
tree | e34a92f9ad24bf92b8e5ae0cc9c2dcbcc68093d5 /gold | |
parent | 2202d7cd99f78692544dfe0b001375a4f8143952 (diff) | |
download | gdb-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')
-rw-r--r-- | gold/ChangeLog | 4 | ||||
-rw-r--r-- | gold/plugin.cc | 2 |
2 files changed, 6 insertions, 0 deletions
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 <respindola@mozilla.com> + + * plugin.cc (Plugin::load): Handle position independent executables. + 2012-06-06 Cary Coutant <ccoutant@google.com> * 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; |