* section.c (bfd_set_section_contents): whitespacs
[deliverable/binutils-gdb.git] / bfd / srec.c
index e12412a6fcce6119444d5f7bc3ad92c315cd13b0..22e2e82a131815da172bb3b2757b35ec738d59d1 100644 (file)
@@ -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 */
This page took 0.025433 seconds and 4 git commands to generate.