Gas: Any pseudo instruction to disable a single RELOC?
Xi Ruoyao
xry111@xry111.site
Fri Jan 12 15:43:03 GMT 2024
在 2024-01-12星期五的 22:41 +0800,YunQiang Su写道:
> > I don't think there is, and I don't think there should be. People using
> > .reloc absolutely need to know what they are doing.
> >
>
> Thank you, I find a solution.
> BAL . + 4
> won't emit any relocs.
>
> Background:
> MIPS pre-R6 has no instructions that can read PC directly, thus we
> have to use an branch and link instruction to do so.
For this purpose GAS already supports the nal alias for bltzal $r0, 0.
> I am working on GCC to support it. I don' want to emit an label for this
> simple branch.
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
More information about the Binutils
mailing list