diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-01-18 17:43:55 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-01-18 17:43:55 +0000 |
commit | 233fe79d27df8ea20b728dddf29709eaf5870d67 (patch) | |
tree | 96520cba253ba62b6d5023fc1563d150e1b3f84d /gold/layout.cc | |
parent | 732ab981c5d4d05204dfa2c4530cd868854c64f9 (diff) | |
download | binutils-redhat-233fe79d27df8ea20b728dddf29709eaf5870d67.tar.gz |
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/layout.cc')
-rw-r--r-- | gold/layout.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 576d44bee2..250782a92b 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); } |