From: Nick Clifton Date: Thu, 22 Sep 2016 13:29:49 +0000 (+0100) Subject: Report failed attempts to locate DT_NEEDED files when --verbose is in effect. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ec22c2c9fd06505f333c00235b3328a632bb69c;p=binutils-gdb.git Report failed attempts to locate DT_NEEDED files when --verbose is in effect. * emultempl/elf32.em (_try_needed): In verbose mode, report failed attempts to find a needed library. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 0d900f8fac8..09661161893 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2016-09-22 Nick Clifton + + * emultempl/elf32.em (_try_needed): In verbose mode, report failed + attempts to find a needed library. + 2016-09-21 Richard Sandiford * testsuite/ld-aarch64/emit-relocs-28.d: Expect spaces after "," diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 2153bf9a76a..8461b1d1302 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -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;