public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* 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; 4+ 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] 4+ messages in thread

* Re: What won't this objcopy split work?
  2000-07-21 10:44 What won't this objcopy split work? Nick Clifton
@ 2000-07-21 20:49 ` Alan Modra
  2000-07-22 23:23   ` Where can i find asm operand constraints? Russ.Shaw
  0 siblings, 1 reply; 4+ 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] 4+ messages in thread

* Where can i find asm operand constraints?
  2000-07-21 20:49 ` Alan Modra
@ 2000-07-22 23:23   ` Russ.Shaw
  2000-07-24 10:06     ` Michael Meissner
  0 siblings, 1 reply; 4+ messages in thread
From: Russ.Shaw @ 2000-07-22 23:23 UTC (permalink / raw)
  To: egcs; +Cc: binutils

Hi all,

I'm using gcc as a cross compiler for the hitachi h8/300h
micro-controller core.

When doing asm statements in C, operand constraints are
needed. I can't find a list of the valid constraints.
Does anyone know what source file they'd be listed in?
TIA

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

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

* Re: Where can i find asm operand constraints?
  2000-07-22 23:23   ` Where can i find asm operand constraints? Russ.Shaw
@ 2000-07-24 10:06     ` Michael Meissner
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Meissner @ 2000-07-24 10:06 UTC (permalink / raw)
  To: Russ.Shaw; +Cc: binutils

On Sun, Jul 23, 2000 at 04:23:15PM +1000, Russ.Shaw wrote:
> Hi all,
> 
> I'm using gcc as a cross compiler for the hitachi h8/300h
> micro-controller core.
> 
> When doing asm statements in C, operand constraints are
> needed. I can't find a list of the valid constraints.
> Does anyone know what source file they'd be listed in?
> TIA

The GCC manual lists the general constraints that apply to all ports in the
manual (in the information file, go to the "Machine Desc" page, and then go
into the "Constraints" page from there.  Unfortuantely, it doesn't list the
machine specific constraints for the h8/300.  For those, you need to grub
through the source gcc/config/h8300/h8300.h, and look for:

	CONST_OK_FOR_LETTER_P
	CONST_DOUBLE_OK_FOR_LETTER_P
	EXTRA_CONSTRAINT

for the special constraints `G'..`U'.  Then look for:

	REG_CLASS_FROM_LETTER

to see what additional letters are used to denote special register classes.

-- 
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

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

end of thread, other threads:[~2000-07-24 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-21 10:44 What won't this objcopy split work? Nick Clifton
2000-07-21 20:49 ` Alan Modra
2000-07-22 23:23   ` Where can i find asm operand constraints? Russ.Shaw
2000-07-24 10:06     ` Michael Meissner

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