* oasys.c (oasys_write_object_contents): Lint.
authorJohn Gilmore <gnu@cygnus>
Tue, 16 Feb 1993 04:44:28 +0000 (04:44 +0000)
committerJohn Gilmore <gnu@cygnus>
Tue, 16 Feb 1993 04:44:28 +0000 (04:44 +0000)
* srec.c:  Whitespace cleanup.

bfd/ChangeLog
bfd/oasys.c
bfd/srec.c

index 33f76c1998b602402b79ef3f7a9ba070c9a15429..0cff8a3b43eb1d2b5638a142ded83b62d9cbb026 100644 (file)
@@ -1,3 +1,8 @@
+Mon Feb 15 20:43:51 1993  John Gilmore  (gnu@cygnus.com)
+
+       * oasys.c (oasys_write_object_contents):  Lint.
+       * srec.c:  Whitespace cleanup.
+
 Fri Feb 12 14:23:07 1993  Ian Lance Taylor  (ian@cygnus.com)
 
        * coffgen.c (coff_print_symbol): Print correct tagndx value;
index d3cd294a3744420ccddaa05cce1159b5db58ff3b..215d305a6be1a0c6573a37753404e43fac0b59a4 100644 (file)
@@ -1,6 +1,6 @@
-/* bfd backend for oasys objects.
-   Copyright (C) 1990-1991 Free Software Foundation, Inc.
-   Written by Steve Chamberlain of Cygnus Support <steve@cygnus.com>.
+/* BFD back-end for oasys objects.
+   Copyright 1990, 1991, 1992 Free Software Foundation, Inc.
+   Written by Steve Chamberlain of Cygnus Support, <sac@cygnus.com>.
 
 This file is part of BFD, the Binary File Descriptor library.
 
@@ -837,7 +837,7 @@ DEFUN(oasys_write_syms, (abfd),
     char *dst = symbol.name;
     unsigned int l = 0;
 
-    if (g->section == & bfd_com_section) {
+    if (bfd_is_com_section (g->section)) {
       symbol.relb = RELOCATION_TYPE_COM;
       bfd_h_put_16(abfd, index, (uint8e_type *)(&symbol.refno[0]));
       index++;
@@ -1152,7 +1152,7 @@ DEFUN(oasys_write_data, (abfd),
 }
 static boolean
 DEFUN(oasys_write_object_contents, (abfd),
-      bfd * CONST abfd)
+      bfd *abfd)
 {
   oasys_write_header(abfd);
   oasys_write_syms(abfd);
@@ -1310,6 +1310,8 @@ return 0;
 #define oasys_bfd_debug_info_accumulate  (FOO(void, (*), (bfd *, asection *)))bfd_void
 #define oasys_bfd_get_relocated_section_contents bfd_generic_get_relocated_section_contents
 #define oasys_bfd_relax_section bfd_generic_relax_section
+#define oasys_bfd_seclet_link bfd_generic_seclet_link
+
 /*SUPPRESS 460 */
 bfd_target oasys_vec =
 {
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.046483 seconds and 4 git commands to generate.