/* BFD back-end for Intel Hex objects.
- Copyright (C) 1995-2016 Free Software Foundation, Inc.
+ Copyright (C) 1995-2017 Free Software Foundation, Inc.
Written by Ian Lance Taylor of Cygnus Support <ian@cygnus.com>.
This file is part of BFD, the Binary File Descriptor library.
buf[1] = '\0';
}
_bfd_error_handler
+ /* xgettext:c-format */
(_("%B:%d: unexpected character `%s' in Intel Hex file"),
abfd, lineno, buf);
bfd_set_error (bfd_error_bad_value);
if (((- chksum) & 0xff) != (unsigned int) HEX2 (buf + 2 * i))
{
_bfd_error_handler
+ /* xgettext:c-format */
(_("%B:%u: bad checksum in Intel Hex file (expected %u, found %u)"),
abfd, lineno,
(- chksum) & 0xff, (unsigned int) HEX2 (buf + 2 * i));
if (len != 2)
{
_bfd_error_handler
+ /* xgettext:c-format */
(_("%B:%u: bad extended address record length in Intel Hex file"),
abfd, lineno);
bfd_set_error (bfd_error_bad_value);
if (len != 4)
{
_bfd_error_handler
+ /* xgettext:c-format */
(_("%B:%u: bad extended start address length in Intel Hex file"),
abfd, lineno);
bfd_set_error (bfd_error_bad_value);
if (len != 2)
{
_bfd_error_handler
+ /* xgettext:c-format */
(_("%B:%u: bad extended linear address record length in Intel Hex file"),
abfd, lineno);
bfd_set_error (bfd_error_bad_value);
if (len != 2 && len != 4)
{
_bfd_error_handler
+ /* xgettext:c-format */
(_("%B:%u: bad extended linear start address length in Intel Hex file"),
abfd, lineno);
bfd_set_error (bfd_error_bad_value);
default:
_bfd_error_handler
+ /* xgettext:c-format */
(_("%B:%u: unrecognized ihex type %u in Intel Hex file"),
abfd, lineno, type);
bfd_set_error (bfd_error_bad_value);
sprintf_vma (buf, where);
_bfd_error_handler
+ /* xgettext:c-format */
(_("%s: address 0x%s out of range for Intel Hex file"),
bfd_get_filename (abfd), buf);
bfd_set_error (bfd_error_bad_value);