aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-05-04 19:41:34 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-05-04 19:41:34 -0700
commitd4758f96f74225319f8cc9412acd72c228a187b9 (patch)
treeb7c620a552037db34587471e261fd646badcdd6d
parentd286e29293b181d6bb6f199f39f0a7ecace69af2 (diff)
downloadgdb-d4758f96f74225319f8cc9412acd72c228a187b9.zip
gdb-d4758f96f74225319f8cc9412acd72c228a187b9.tar.gz
gdb-d4758f96f74225319f8cc9412acd72c228a187b9.tar.bz2
Pass %E to einfo when bfd_section == NULL
Report BFD error When bfd_section == NULL in init_os. * ldlang.c (init_os): Pass %E to einfo when bfd_section == NULL.
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldlang.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 5fae3c0..f1a38c3 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2016-05-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ldlang.c (init_os): Pass %E to einfo when bfd_section == NULL.
+
2016-05-04 Maciej W. Rozycki <macro@imgtec.com>
* testsuite/ld-unique/unique.d: New test.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 96947da..1cbba39 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2204,7 +2204,7 @@ init_os (lang_output_section_statement_type *s, flagword flags)
s->name, flags);
if (s->bfd_section == NULL)
{
- einfo (_("%P%F: output format %s cannot represent section called %s\n"),
+ einfo (_("%P%F: output format %s cannot represent section called %s: %E\n"),
link_info.output_bfd->xvec->name, s->name);
}
s->bfd_section->output_section = s->bfd_section;