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: [PATCH v2] Work around the NOP issue of Loongson2F


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


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