This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: arbitrary ELF machine-code


"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=-



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]