[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ld for arm-coff format can't change to binary
From: |
Nick Clifton |
Subject: |
Re: ld for arm-coff format can't change to binary |
Date: |
23 May 2001 17:10:56 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Hi David,
> I tried to link the coff-format object file and
> change the output file with binary image
> However, it returns an error message and then stops
>
> command is
> "arm-coff-ld -e _hello --oformat binary -o hello.cof hello.o init.o"
> the error message is:
> "arm-coff-ld: error: cannot change output format whilst linking ARM binaries"
This is not a bug. This is deliberate. Although in general the
linker is able to convert object formats on the fly, it is not able to
do so for all formats, and arm-coff is one of them.
There is a simple solution however. Just link the application as
normal and then use objcopy to convert the executabel into the binary
format. ie:
arm-coff-ld -e _hello -o hello.cof hello.o init.o
arm-coff-objcopy -O binary hello.cof hello.bin
Cheers
Nick