aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 3c24b66..d3018b2 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -3729,10 +3729,11 @@ print_assignment (lang_assignment_statement_type *assignment,
static void
print_input_statement (lang_input_statement_type *statm)
{
- if (statm->filename != NULL)
- {
- fprintf (config.map_file, "LOAD %s\n", statm->filename);
- }
+ if ((statm->filename != NULL)
+ && ((statm->the_bfd == NULL)
+ ||
+ ((statm->the_bfd->flags & BFD_LINKER_CREATED) == 0)))
+ fprintf (config.map_file, "LOAD %s\n", statm->filename);
}
/* Print all symbols defined in a particular section. This is called
@@ -4185,8 +4186,8 @@ insert_pad (lang_statement_union_type **ptr,
/* Use the existing pad statement. */
}
else if ((pad = *ptr) != NULL
- && pad->header.type == lang_padding_statement_enum
- && pad->padding_statement.output_section == output_section)
+ && pad->header.type == lang_padding_statement_enum
+ && pad->padding_statement.output_section == output_section)
{
/* Use the existing pad statement. */
}