diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-06-14 23:44:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-06-14 23:44:37 +0000 |
commit | 8f602988821f0937df860525475cced620b43cf3 (patch) | |
tree | 7ee7af5436f1f515957a475fa334ae837ab3631b | |
parent | 6202443634f4d5037c7f5230f04cd395beccc717 (diff) | |
download | binutils-redhat-8f602988821f0937df860525475cced620b43cf3.tar.gz |
Handle link_info.pie in ld plugin
* plugin.c (set_tv_header): Handle link_info.pie.
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/plugin.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index eb9bfbd923..73a852f66b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2012-06-14 H.J. Lu <hongjiu.lu@intel.com> + + * plugin.c (set_tv_header): Handle link_info.pie. + 2012-06-11 Alan Modra <amodra@gmail.com> PR ld/14215 diff --git a/ld/plugin.c b/ld/plugin.c index 2515888878..7e3d2a33ba 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -697,7 +697,9 @@ set_tv_header (struct ld_plugin_tv *tv) case LDPT_LINKER_OUTPUT: TVU(val) = (link_info.relocatable ? LDPO_REL - : link_info.executable ? LDPO_EXEC : LDPO_DYN); + : (link_info.executable + ? (link_info.pie ? LDPO_PIE : LDPO_EXEC) + : LDPO_DYN)); break; case LDPT_OUTPUT_NAME: TVU(string) = output_filename; |