aboutsummaryrefslogtreecommitdiff
path: root/bfd/ihex.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/ihex.c')
-rw-r--r--bfd/ihex.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/ihex.c b/bfd/ihex.c
index 636632f..a9a5fca 100644
--- a/bfd/ihex.c
+++ b/bfd/ihex.c
@@ -226,6 +226,7 @@ ihex_bad_byte (bfd *abfd, unsigned int lineno, int c, bfd_boolean error)
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);
@@ -333,6 +334,7 @@ ihex_scan (bfd *abfd)
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));
@@ -388,6 +390,7 @@ ihex_scan (bfd *abfd)
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);
@@ -405,6 +408,7 @@ ihex_scan (bfd *abfd)
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);
@@ -422,6 +426,7 @@ ihex_scan (bfd *abfd)
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);
@@ -439,6 +444,7 @@ ihex_scan (bfd *abfd)
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);
@@ -456,6 +462,7 @@ ihex_scan (bfd *abfd)
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);
@@ -822,6 +829,7 @@ ihex_write_object_contents (bfd *abfd)
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);