aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-09-22 14:29:49 +0100
committerNick Clifton <nickc@redhat.com>2016-09-22 14:29:49 +0100
commit0ec22c2c9fd06505f333c00235b3328a632bb69c (patch)
tree54621b11c48f1422f0bb283b4b1545c42a250adb /ld/emultempl
parentfa42dd2e8328560e65c888277ab146810c1763a8 (diff)
downloadgdb-0ec22c2c9fd06505f333c00235b3328a632bb69c.zip
gdb-0ec22c2c9fd06505f333c00235b3328a632bb69c.tar.gz
gdb-0ec22c2c9fd06505f333c00235b3328a632bb69c.tar.bz2
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.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em6
1 files changed, 5 insertions, 1 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 2153bf9..8461b1d 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;