Gas: Any pseudo instruction to disable a single RELOC?

Jan Beulich jbeulich@suse.com
Fri Jan 12 10:17:43 GMT 2024


On 12.01.2024 11:08, YunQiang Su wrote:
> Is there a way to disable generating RELOC for a single instruction?
> One example is
> 
>      .set noreorder
> xx:
>       .reloc 0,R_MIPS_NONE,0  # append a new reloc.
>       bal 4
>       nop
>       sll $2,$2,0
>       sll $2,$2,0
> 
> 
> In this example, I wish `bal 4` would be keeped as is.
> Is there a way to disable generating any RELOC?

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.

Jan


More information about the Binutils mailing list