LOAD in linker map file

Alan Modra amodra@gmail.com
Thu Sep 12 13:20:00 GMT 2019


For some reason, commit 906e58cab5 2008-05-15 excluded input
statements with BFD_LINKER_CREATED BFDs from being printed to map
files.  This isn't ideal since it loses claimed plugin BFDs.

	* ldlang.c (print_input_statement): Do not exclude linker created
	BFDs.

diff --git a/ld/ldlang.c b/ld/ldlang.c
index 5a34e5cc23..7b381ef2d5 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -4344,9 +4344,7 @@ print_assignment (lang_assignment_statement_type *assignment,
 static void
 print_input_statement (lang_input_statement_type *statm)
 {
-  if (statm->filename != NULL
-      && (statm->the_bfd == NULL
-	  || (statm->the_bfd->flags & BFD_LINKER_CREATED) == 0))
+  if (statm->filename != NULL)
     fprintf (config.map_file, "LOAD %s\n", statm->filename);
 }
 

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list