This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Assembly instructions storing structure
- From: Ashwin Pathmudi <ashwin dot pathmudi at gmail dot com>
- To: "Balaji V. Iyer" <bviyer at ncsu dot edu>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 17 Nov 2005 23:36:19 +0530
- Subject: Re: Assembly instructions storing structure
- References: <35768.152.1.157.46.1132246491.squirrel@webmail.ncsu.edu>
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.