This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH v2] Work around the NOP issue of Loongson2F
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Wu Zhangjin <wuzhangjin at gmail dot com>
- Cc: Nick Clifton <nickc at redhat dot com>, binutils at sourceware dot org, "Alfred M. Szmidt" <ams at gnu dot org>, zhangfx at lemote dot com, yanh at lemote dot com
- Date: Mon, 16 Nov 2009 20:11:35 +0000
- Subject: Re: [PATCH v2] Work around the NOP issue of Loongson2F
- References: <1258381496-32456-1-git-send-email-wuzhangjin@gmail.com> <87iqdautjc.fsf@firetop.home>
Richard Sandiford <rdsandiford@googlemail.com> writes:
> Not correctly formatted. You shouldn't need anything so complex though;
> just use:
>
> append_insn (NOP_INSN, 0, BFD_RELOC_NONE);
Err, sorry, I misremembered the interface. Let's move:
bfd_reloc_code_real_type unused_reloc[3]
= {BFD_RELOC_UNUSED, BFD_RELOC_UNUSED, BFD_RELOC_UNUSED};
from the start of md_assemble to the top level, putting it
after offset_reloc. Then use:
append_insn (NOP_INSN, 0, &unused_reloc);
Richard