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.
This commit is contained in:
parent
d286e29293
commit
d4758f96f7
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue