LOAD in linker map file

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.
This commit is contained in:
Alan Modra 2019-09-12 17:31:41 +09:30
parent a19826f4c4
commit 0d41d9a2aa
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2019-09-12 Alan Modra <amodra@gmail.com>
* ldlang.c (print_input_statement): Do not exclude linker created
BFDs.
2019-09-12 Alan Modra <amodra@gmail.com>
PR 24981

View File

@ -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);
}