From: H.J. Lu Date: Thu, 14 Jun 2012 23:44:38 +0000 (+0000) Subject: Handle link_info.pie in ld plugin X-Git-Tag: sid-snapshot-20120701~177 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6611f2e124895bfad9cbb51e5c0bf53daa86986d;p=thirdparty%2Fbinutils-gdb.git Handle link_info.pie in ld plugin * plugin.c (set_tv_header): Handle link_info.pie. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index eb9bfbd9233..73a852f66bd 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2012-06-14 H.J. Lu + + * plugin.c (set_tv_header): Handle link_info.pie. + 2012-06-11 Alan Modra PR ld/14215 diff --git a/ld/plugin.c b/ld/plugin.c index 2515888878d..7e3d2a33ba8 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;