From 16e4ecc0dbe114cfc97fe2cd32a035ae4c37f22b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 22 Jan 2014 16:05:12 +1030 Subject: 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. --- ld/ChangeLog | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ld/ChangeLog') diff --git a/ld/ChangeLog b/ld/ChangeLog index 0645c2d..59e9d36 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,16 @@ 2014-01-22 Alan Modra + * 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. + +2014-01-22 Alan Modra + * ld.h (struct map_symbol_def): Move to.. * ldlang.h: ..here. * ldlang.c (print_assignment): Don't set expld.assign_name to dot. -- cgit v1.1