This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: S-Record: Setting number of bytes per record on output.
- To: Grant Edwards <grante at visi dot com>
- Subject: Re: S-Record: Setting number of bytes per record on output.
- From: amodra at one dot net dot au
- Date: Fri, 4 May 2001 20:53:11 +0930
- Cc: binutils at sources dot redhat dot com
- References: <20010503123448.A9514@visi.com>
On Thu, May 03, 2001 at 12:34:49PM -0500, Grant Edwards wrote:
> I see where to change the record-size in bfd/srec.c, but I
> don't know how that can be controlled by the bfd libarary user
> (e.g. set by objcopy based on a command-line option). Is
> having user-settable record lengths not feasible?
Perhaps you need to look at more recent source.
/* The number of bytes we actually fit onto a line on output.
This variable can be modified by objcopy's --srec-len parameter.
For a 0x75 byte record you should set --srec-len=0x70. */
unsigned int Chunk = DEFAULT_CHUNK;