public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Gene Smith <gds@chartertn.net>
To: binutils@sources.redhat.com
Subject: Suppress "Start Linear Address Record" in ihex file
Date: Tue, 25 Aug 2009 22:14:00 -0000	[thread overview]
Message-ID: <h718mk$8q5$1@ger.gmane.org> (raw)

Our legacy loader for an embedded system chokes on record type 5, Start 
Linear Address Record, in intel hex files. But by default objcopy emits 
one of these records (2nd line from the end based on the address of 
.text). I found two ways to not produce these records but my usage seems 
undocumented and I don't want to do something that might break with 
future bug fixes.  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?

Thanks,

-gene

             reply	other threads:[~2009-08-25 18:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-25 22:14 Gene Smith [this message]
2009-08-26  7:21 ` Nick Clifton
2009-08-27 13:15   ` Gene Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h718mk$8q5$1@ger.gmane.org' \
    --to=gds@chartertn.net \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).