aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 55553fa..483472c 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -984,7 +984,9 @@ static void
DEFUN(print_input_statement,(statm),
lang_input_statement_type *statm)
{
- printf("LOAD %s\n",statm->filename);
+ if (statm->filename != (char *)NULL) {
+ printf("LOAD %s\n",statm->filename);
+ }
}
static void