# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/binutils-spe/spu-nop-insn.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Since binutils 2.31 the generic .nop [size] pseudo-op shadows the SPU nop instruction, as NO_PSEUDO_DOT is set. GCC emits "nop 127" (RT=$127) which then expands to 127 bytes of nops, breaking hbrr branch hint distances: Error: Relocation doesn't fit. (relocation value = 0x518) Force nop to be an instruction, like set and eqv. Signed-off-by: René Rebe --- a/gas/config/tc-spu.c 2026-11-19 16:45:30.249312036 +0100 +++ b/gas/config/tc-spu.c 2026-11-19 16:45:30.258735647 +0100 @@ -101,6 +101,9 @@ const pseudo_typeS md_pseudo_table[] = /* Likewise for eqv. */ {"eqv", NULL, 0}, {".eqv", s_set, -1}, + /* Likewise for nop, nop with operand is not a fill count. */ + {"nop", NULL, 0}, + {".nop", s_nop, 0}, {0,0,0} };