This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Porting binutils to new platform
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sources dot redhat dot com
- Cc: "Chris Smith" <chris at mindiq dot com>
- Date: Wed, 26 May 2004 14:57:19 +0100
- Subject: Re: Porting binutils to new platform
- Organization: CodeSourcery
- References: <018c01c44327$af4ab1b0$6f00000a@KYA>
On Wednesday 26 May 2004 14:45, Chris Smith wrote:
> I'm trying to get binutils working for a calculator.
>
> The calculator uses an ARM processor... but typically uses it to emulate
> the assembly language of a now-defunct proprietary processor. Recently,
> it's been discovered that it's possible to call ARM machine code by placing
> the machine code into a string constant and then doing some fancy stuff
> with the emulated assembly to cause the processor to jump to the address of
> the string constant. I'd like to define a target file format which takes
> ARM assembly and creates just such a file -- with machine code stuffed into
> a string constant and the basic Saturn machine code header to cause the
> processor to run the ARM code.
It may be quicker and easier to use the existing arm-elf target (probably with
a custom linker script), then "objcopy -O binary" and a quick script to
generate your assembly wrapper.
Paul