Blame binutils-skip-dwo-search-if-not-needed.patch

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