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: how to embed an arbitrary opcode


> 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.

I'd rather not do it this way. A naive implementation like this ignores many 
of the complications that arise on Thumb-2 targets.

c.f. http://sourceware.org/ml/binutils/2006-11/msg00250.html

Daniel Gutson is currently working on implementing a variant of (2).

Paul


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