13ae24
--- binutils.orig/binutils/dwarf.c	2018-02-08 10:49:07.154191536 +0000
13ae24
+++ binutils-2.30/binutils/dwarf.c	2018-02-08 12:53:32.649380368 +0000
13ae24
@@ -9851,6 +9851,10 @@ load_dwo_file (const char * main_filenam
13ae24
 void *
13ae24
 load_separate_debug_file (void * file, const char * filename)
13ae24
 {
13ae24
+  /* Skip this operation if we are not interested in debug links.  */
13ae24
+  if (! do_follow_links && ! do_debug_links)
13ae24
+    return NULL;
13ae24
+
13ae24
   /* See if there is a dwo link.  */
13ae24
   if (load_debug_section (str, file)
13ae24
       && load_debug_section (abbrev, file)