diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-01-18 17:43:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-01-18 17:43:58 +0000 |
commit | b1b00fcc619cfa409c4e244f609ab82f3a3c37d2 (patch) | |
tree | 6947756f5289396789c0010bc3b879355709066d /gold | |
parent | 8ce3d284cb47f1b08c74d8a20b6b0cfd2d225d2c (diff) | |
download | binutils-b1b00fcc619cfa409c4e244f609ab82f3a3c37d2.zip binutils-b1b00fcc619cfa409c4e244f609ab82f3a3c37d2.tar.gz binutils-b1b00fcc619cfa409c4e244f609ab82f3a3c37d2.tar.bz2 |
ld: change --enable-new-dtags to only generate new dtags
The "new" dtags options have been around for 14+ years, so there
shouldn't be a need to generate both new & old tags anymore.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 6 | ||||
-rw-r--r-- | gold/layout.cc | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 01058c1..42d2d03 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2013-01-18 Mike Frysinger <vapier@gentoo.org> + + * layout.cc (Layout::finish_dynamic_section): Only add DT_RPATH + when enable_new_dtags is false. Only add DT_RUNPATH when + enable_new_dtags is true. + 2013-01-17 Serge Pavlov <serge.v.pavlov@gmail.com> * powerpc.cc (Stub_table::find_plt_call_entry): Make types diff --git a/gold/layout.cc b/gold/layout.cc index 576d44b..250782a 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -4647,8 +4647,9 @@ Layout::finish_dynamic_section(const Input_objects* input_objects, } } - odyn->add_string(elfcpp::DT_RPATH, rpath_val); - if (parameters->options().enable_new_dtags()) + if (!parameters->options().enable_new_dtags()) + odyn->add_string(elfcpp::DT_RPATH, rpath_val); + else odyn->add_string(elfcpp::DT_RUNPATH, rpath_val); } |