summaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-01-18 17:43:55 +0000
committerMike Frysinger <vapier@gentoo.org>2013-01-18 17:43:55 +0000
commit233fe79d27df8ea20b728dddf29709eaf5870d67 (patch)
tree96520cba253ba62b6d5023fc1563d150e1b3f84d /gold/layout.cc
parent732ab981c5d4d05204dfa2c4530cd868854c64f9 (diff)
downloadbinutils-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.cc5
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);
}