summaryrefslogtreecommitdiff
path: root/bfd/srec.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2000-12-20 00:21:57 +0000
committerKazu Hirata <kazu@codesourcery.com>2000-12-20 00:21:57 +0000
commit4850d1b7c5fca0ed0cd6cb8dbe229cbe2091e921 (patch)
tree133cc9716dde10f767bc5acf6fa48bdd48b622c3 /bfd/srec.c
parentee6670b646d09b774542ec6182c25681005ac0f7 (diff)
downloadbinutils-redhat-4850d1b7c5fca0ed0cd6cb8dbe229cbe2091e921.tar.gz
2000-12-19 Kazu Hirata <kazu@hxi.com>
* sco5-core.c: Fix formatting. * section.c: Likewise. * sparclinux.c: Likewise. * sparclynx.c: Likewise. * sparcnetbsd.c: Likewise. * srec.c: Likewise. * stabs.c: Likewise. * stab-syms.c: Likewise. * sunos.c: Likewise. * syms.c: Likewise. * sysdep.h: Likewise.
Diffstat (limited to 'bfd/srec.c')
-rw-r--r--bfd/srec.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/bfd/srec.c b/bfd/srec.c
index 521717ca46..5602239242 100644
--- a/bfd/srec.c
+++ b/bfd/srec.c
@@ -24,7 +24,7 @@ SUBSECTION
S-Record handling
DESCRIPTION
-
+
Ordinary S-Records cannot hold anything but addresses and
data, so that's all that we implement.
@@ -42,10 +42,10 @@ DESCRIPTION
up and output them when it's time to close the bfd.
An s record looks like:
-
+
EXAMPLE
S<type><length><address><data><checksum>
-
+
DESCRIPTION
Where
o length
@@ -61,7 +61,7 @@ DESCRIPTION
7) four byte address termination record
8) three byte address termination record
9) two byte address termination record
-
+
o address
is the start address of the data following, or in the case of
a termination record, the start address of the image
@@ -71,7 +71,6 @@ DESCRIPTION
is the sum of all the raw byte data in the record, from the length
upwards, modulo 256 and subtracted from 255.
-
SUBSECTION
Symbol S-Record handling
@@ -101,7 +100,7 @@ EXAMPLE
DESCRIPTION
We allow symbols to be anywhere in the data stream - the module names
are always ignored.
-
+
*/
#include "bfd.h"
@@ -882,7 +881,7 @@ srec_set_section_contents (abfd, section, location, offset, bytes_to_do)
regardless of the siez of the addresses. */
if (S3Forced)
tdata->type = 3;
- else if ((section->lma + offset + bytes_to_do - 1) <= 0xffff)
+ else if ((section->lma + offset + bytes_to_do - 1) <= 0xffff)
; /* The default, S1, is OK. */
else if ((section->lma + offset + bytes_to_do - 1) <= 0xffffff
&& tdata->type <= 2)