forked from Imagelibrary/binutils-gdb
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user