This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: arbitrary ELF machine-code
- From: "Alexander Voropay" <a dot voropay at equant dot ru>
- To: "Nick Clifton" <nickc at redhat dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Sat, 18 Feb 2006 19:01:04 +0300
- Subject: Re: arbitrary ELF machine-code
- References: <02a401c63393$7743d0e0$e90d11ac@spb.in.rosprint.ru> <43F5B9B6.2060803@redhat.com>
- Reply-to: "Alexander Voropay" <a dot voropay at equant dot ru>
"Nick Clifton" <nickc@redhat.com> wrote:
Unfortunately, I can't made this with `objcopy --alt-machine-code`
option.
Tryed "--alt-machine-code 30" "--alt-machine-code 0x1e" e.t.c.
What happens when you try this ? It should work. Can you include a
*small* test case ?
What synax I should use for this option ?
'info objcopy' statest :
`--alt-machine-code=INDEX'
If the output architecture has alternate machine codes, use the
INDEXth code instead of the default one. This is useful in case a
machine is assigned an official code and the tool-chain adopts the
new code, but other applications still depend on the original code
being used.
$/opt/bin/mips-linux-uclibc-objcopy --version
GNU objcopy 2.16.91 20060218
...
$/opt/bin/mips-linux-uclibc-objcopy --alt-machine-code 0x1e hello.elf
hello.bin
/opt/bin/mips-linux-uclibc-objcopy: alternate machine code index must be
positive
$/opt/bin/mips-linux-uclibc-objcopy --alt-machine-code 1e hello.elf
hello.bin
/opt/bin/mips-linux-uclibc-objcopy: unknown alternate machine code, ignored
$/opt/bin/mips-linux-uclibc-objcopy --alt-machine-code 30 hello.elf
hello.bin
/opt/bin/mips-linux-uclibc-objcopy: unknown alternate machine code, ignored
--
-=AV=-