+2018-02-08 Nick Clifton <nickc@redhat.com>
+
+ PR 22802
+ * dwarf.c (load_separate_debug_file): Return early if the user is
+ not interested in debug links.
+
2018-02-06 Nick Clifton <nickc@redhat.com>
PR 22793
void *
load_separate_debug_file (void * file, const char * filename)
{
+ /* Skip this operation if we are not interested in debug links. */
+ if (! do_follow_links && ! do_debug_links)
+ return NULL;
+
/* See if there is a dwo link. */
if (load_debug_section (str, file)
&& load_debug_section (abbrev, file)
}
if (! do_follow_links)
+ /* The other debug links will be displayed by display_debug_links()
+ so we do not need to do any further processing here. */
return NULL;
/* FIXME: We do not check for the presence of both link sections in the same file. */