Assembly instructions storing structure
Ashwin Pathmudi
ashwin.pathmudi@gmail.com
Thu Nov 17 18:06:00 GMT 2005
hi,
On 11/17/05, Balaji V. Iyer <bviyer@ncsu.edu> wrote:
> Hi Everyone,
> I am trying to port binutils to my propriatery architecture, and I
> would like to do some "fix" before writing the instructions to the
> file. I would to know where it stores the assembly instructions
> before writing it to the file (like maybe a linked list or
> something).
>
> I am currently using binutils-2.11.93
The opcode for assembly instruction is written into a structure called
frag. I've never worked on binutils-2.11 but its at least the case
in 2.15. More info
on frags can be got from gas/frags.h.
When you say "fix" do you mean doing a fixup or you want to tamper with the
object code of the already generated instruction ?
HTH,
cheers,
Ashwin Pathmudi.
More information about the Binutils
mailing list