aboutsummaryrefslogtreecommitdiff
path: root/bfd/srec.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/srec.c')
-rw-r--r--bfd/srec.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/srec.c b/bfd/srec.c
index e12412a..22e2e82 100644
--- a/bfd/srec.c
+++ b/bfd/srec.c
@@ -78,7 +78,7 @@ DESCRIPTION
/* Macros for converting between hex and binary */
-static const char digs[] = "0123456789ABCDEF";
+static CONST char digs[] = "0123456789ABCDEF";
static char hex_value[1 + (unsigned char)~0];
@@ -438,6 +438,7 @@ void DEFUN(srec_write_record,(abfd, type, address, data, end),
TOHEX(dst, check_sum, check_sum);
dst+=2;
+ *dst ++ = '\r';
*dst ++ = '\n';
bfd_write((PTR)buffer, 1, dst - buffer , abfd);
}
@@ -503,9 +504,8 @@ DEFUN(srec_write_terminator,(abfd, tdata),
srec_write_record(abfd, 10 - tdata->type,
abfd->start_address, buffer, buffer);
-
-
}
+
static boolean
DEFUN(srec_mkobject, (abfd),
bfd *abfd)
@@ -589,6 +589,8 @@ DEFUN(srec_make_empty_symbol, (abfd),
#define srec_bfd_debug_info_accumulate (FOO(void, (*), (bfd *, asection *))) bfd_void
#define srec_bfd_get_relocated_section_contents bfd_generic_get_relocated_section_contents
#define srec_bfd_relax_section bfd_generic_relax_section
+#define srec_bfd_seclet_link bfd_generic_seclet_link
+
bfd_target srec_vec =
{
"srec", /* name */