how to embed an arbitrary opcode
Nick Clifton
nickc@redhat.com
Fri Jun 19 13:50:00 GMT 2009
Hi John,
> I'm looking for a way to embed an arbitrary opcode into an assembly
> file for the ARM architecture.
Is there a particular reason why you cannot just include the textual
version of the opcode you want and have it assembled as normal ?
> Objdump refuses to disassemble those opcodes even with the
> --disassemble-all flag.
This has now been fixed in the mainline sources.
> .long 0xe320f003
Currently there is no way to achieve the effect you desire. But all is
not lost, this being free software and all. So, please try out the
attached patch which adds two new pseudo ops to the ARM port of GAS:
.iword <expression>[,<expression>]*
.ishort <expression>[,<expression>]*
which can be used to insert 32-bit and 16-bit values respectively into
the output stream and mark them as instructions not data.
Cheers
Nick
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: arm.iword.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20090619/6e209cb4/attachment.ksh>
More information about the Binutils
mailing list