aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-01-18 17:43:58 +0000
committerMike Frysinger <vapier@gentoo.org>2013-01-18 17:43:58 +0000
commitb1b00fcc619cfa409c4e244f609ab82f3a3c37d2 (patch)
tree6947756f5289396789c0010bc3b879355709066d /gold/layout.cc
parent8ce3d284cb47f1b08c74d8a20b6b0cfd2d225d2c (diff)
downloadgdb-b1b00fcc619cfa409c4e244f609ab82f3a3c37d2.zip
gdb-b1b00fcc619cfa409c4e244f609ab82f3a3c37d2.tar.gz
gdb-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/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 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);
}