aboutsummaryrefslogtreecommitdiff
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
commit7b82c249fa95cb7c5500e8fe629f54f32de72ff8 (patch)
treed7b1f08c82474f2d1af73a1d50d574b5f7d19799 /bfd/srec.c
parente30839fee3fa2b2ae067e6d85fa9ba41be09fc22 (diff)
downloadgdb-7b82c249fa95cb7c5500e8fe629f54f32de72ff8.zip
gdb-7b82c249fa95cb7c5500e8fe629f54f32de72ff8.tar.gz
gdb-7b82c249fa95cb7c5500e8fe629f54f32de72ff8.tar.bz2
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 521717c..5602239 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)