aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-01-22 16:05:12 +1030
committerAlan Modra <amodra@gmail.com>2014-01-22 16:21:34 +1030
commit16e4ecc0dbe114cfc97fe2cd32a035ae4c37f22b (patch)
treea48afd646fe4928d6546cc9c25fba25543fbcdb4 /ld/ldmain.c
parentcda796e168a389624b4e06031922bf5eaf0b6f51 (diff)
downloadgdb-16e4ecc0dbe114cfc97fe2cd32a035ae4c37f22b.zip
gdb-16e4ecc0dbe114cfc97fe2cd32a035ae4c37f22b.tar.gz
gdb-16e4ecc0dbe114cfc97fe2cd32a035ae4c37f22b.tar.bz2
Display the reference causing a shared library to be needed
Adds a section for --as-needed libraries to a linker map file, similar to what we do for archive libraries. bfd/ * elflink.c (elf_link_add_object_symbols): Call minfo for --as-needed. ld/ * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars. (lang_init): Initialise them. (lang_print_asneeded): New function. (lang_process): Call lang_print_asneeded. * ldlang.h (struct asneeded_minfo): New. (asneeded_list_tail): Declare. * ldmain.c (add_archive_element): Improve archive map heading. * ldmisc.c (minfo): Stash --as-needed info.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 019df71..00f79ec 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -841,7 +841,8 @@ add_archive_element (struct bfd_link_info *info,
{
char buf[100];
- sprintf (buf, _("Archive member included because of file (symbol)\n\n"));
+ sprintf (buf, _("Archive member included "
+ "to satisfy reference by file (symbol)\n\n"));
minfo ("%s", buf);
header_printed = TRUE;
}