public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* What won't this objcopy split work?
@ 2000-07-21  1:05 Russ.Shaw
  0 siblings, 0 replies; 3+ messages in thread
From: Russ.Shaw @ 2000-07-21  1:05 UTC (permalink / raw)
  To: binutils

Hi all,

I'm producing code for a 16-bit h8/300h cpu, and want to
generate an srec file for all the even bytes, and an srec
file for all the odd bytes, using objcopy:

h8300-hms-objcopy --output-target=srec --interleave=2
                          --byte=1 flash.coff flodd.srec

However, it responds with flodd.srec: illegal operation

What can be wrong?

I'm using mandrake-7.0

-- 
*******************************************
*   Russell Shaw, B.Eng, M.Eng(Research)  *
*      email: russell@webaxs.net          *
*      Australia                          *
*******************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What won't this objcopy split work?
  2000-07-21 10:44 Nick Clifton
@ 2000-07-21 20:49 ` Alan Modra
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Modra @ 2000-07-21 20:49 UTC (permalink / raw)
  To: russell; +Cc: binutils

On Fri, 21 Jul 2000, Nick Clifton wrote:

> Hi Russel,
> 
> : I'm producing code for a 16-bit h8/300h cpu, and want to
> : generate an srec file for all the even bytes, and an srec
> : file for all the odd bytes, using objcopy:
> : 
> : h8300-hms-objcopy --output-target=srec --interleave=2
> :                           --byte=1 flash.coff flodd.srec
> : 
> : However, it responds with flodd.srec: illegal operation
> : 
> : What can be wrong?
> 
> I am not sure.  I was able to run the same command (admittedly with a
> different input file) on my test machine and it gave me no problems.
> Also when I searched through the sources I could not find the 'illegal
> operation' error message anywhere!

Sounds like the message is coming from the operating system then.
Russell, you said you're running Linux, but what platform, and what
version of libc?  Also, what type of filesystem is flodd.srec on?
If it's NFS, try doing the objcopy on a local filesytem instead.

Alan Modra
-- 
Linuxcare.  Support for the Revolution.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What won't this objcopy split work?
@ 2000-07-21 10:44 Nick Clifton
  2000-07-21 20:49 ` Alan Modra
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Clifton @ 2000-07-21 10:44 UTC (permalink / raw)
  To: russell; +Cc: binutils

Hi Russel,

: I'm producing code for a 16-bit h8/300h cpu, and want to
: generate an srec file for all the even bytes, and an srec
: file for all the odd bytes, using objcopy:
: 
: h8300-hms-objcopy --output-target=srec --interleave=2
:                           --byte=1 flash.coff flodd.srec
: 
: However, it responds with flodd.srec: illegal operation
: 
: What can be wrong?

I am not sure.  I was able to run the same command (admittedly with a
different input file) on my test machine and it gave me no problems.
Also when I searched through the sources I could not find the 'illegal
operation' error message anywhere!

I suspect that you may a different set of sources from the ones that I
am using.  Perhaps you could try downloading the latest sources from
the CVS repository and building a new version of objcopy from them ?

The sources can be found at:

  http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/?cvsroot=src

Cheers
	Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-21 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-21  1:05 What won't this objcopy split work? Russ.Shaw
2000-07-21 10:44 Nick Clifton
2000-07-21 20:49 ` Alan Modra

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).