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>
This commit is contained in:
Mike Frysinger
2013-01-18 17:43:58 +00:00
parent 8ce3d284cb
commit b1b00fcc61
7 changed files with 29 additions and 11 deletions

View File

@@ -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);
}