Report failed attempts to locate DT_NEEDED files when --verbose is in effect.
authorNick Clifton <nickc@redhat.com>
Thu, 22 Sep 2016 13:29:49 +0000 (14:29 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 22 Sep 2016 13:29:49 +0000 (14:29 +0100)
* emultempl/elf32.em (_try_needed): In verbose mode, report failed
attempts to find a needed library.

ld/ChangeLog
ld/emultempl/elf32.em

index 0d900f8fac845e5cc5e6a4948de2e2312e2c70c6..096611618931c2d35ef8455efdde6fa69496bdbf 100644 (file)
@@ -1,3 +1,8 @@
+2016-09-22  Nick Clifton  <nickc@redhat.com>
+
+       * emultempl/elf32.em (_try_needed): In verbose mode, report failed
+       attempts to find a needed library.
+
 2016-09-21  Richard Sandiford  <richard.sandiford@arm.com>
 
        * testsuite/ld-aarch64/emit-relocs-28.d: Expect spaces after ","
index 2153bf9a76a75ed47d45c554499bcbfbc8243544..8461b1d1302629174c4e5c844fc5d21f7cef3570 100644 (file)
@@ -337,7 +337,11 @@ gld${EMULATION_NAME}_try_needed (struct dt_needed *needed,
 
   abfd = bfd_openr (name, bfd_get_target (link_info.output_bfd));
   if (abfd == NULL)
-    return FALSE;
+    {
+      if (verbose)
+       info_msg (_("attempt to open %s failed\n"), name);
+      return FALSE;
+    }
 
   /* Linker needs to decompress sections.  */
   abfd->flags |= BFD_DECOMPRESS;
This page took 0.034091 seconds and 4 git commands to generate.