This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Suppress "Start Linear Address Record" in ihex file
- From: Nick Clifton <nickc at redhat dot com>
- To: Gene Smith <gds at chartertn dot net>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 26 Aug 2009 08:14:10 +0100
- Subject: Re: Suppress "Start Linear Address Record" in ihex file
- References: <h718mk$8q5$1@ger.gmane.org>
Hi Gene,
Our legacy loader for an embedded system chokes on record type 5
Given that the real bug is your legacy loader...
Here's the ways I have found to suppress the type 5
hex record from the ihex file:
1. In objcopy, use "--set-start=" with it set to no value. (Possibly
setting to zero would also work.)
2. In link control file set "start=0;" (An address outside the defines
space.)
3. I have also used sed to remove the one-line record.
Is this the correct way to suppress the "Start Linear Address" record
from the ihex file?
There is no one correct way to suppress these records; it is a case of
whatever works works. But if you want an opinion then I would recommend
option 1) with an explicit start value of 0. (Assuming that that
works). This is the clearest option. It might also be useful to add a
comment to whatever makefile or build mechanism you are using where this
command line option is added to objcopy explaining why it is needed.
Cheers
Nick