linux-yocto/tools
Tiezhu Yang 5dbbc7b04c objtool/LoongArch: Mark special atomic instruction as INSN_BUG type
commit 539d7344d4feaea37e05863e9aa86bd31f28e46f upstream.

When compiling with LLVM and CONFIG_RUST is set, there exists the
following objtool warning:

  rust/compiler_builtins.o: warning: objtool: __rust__unordsf2(): unexpected end of section .text.unlikely.

objdump shows that the end of section .text.unlikely is an atomic
instruction:

  amswap.w        $zero, $ra, $zero

According to the LoongArch Reference Manual, if the amswap.w atomic
memory access instruction has the same register number as rd and rj,
the execution will trigger an Instruction Non-defined Exception, so
mark the above instruction as INSN_BUG type to fix the warning.

Cc: stable@vger.kernel.org
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-25 11:16:47 +02:00
..
accounting
arch objtool/LoongArch: Mark special atomic instruction as INSN_BUG type 2025-09-25 11:16:47 +02:00
bootconfig tools/bootconfig: specify LDFLAGS as an argument to CC 2025-05-16 11:22:54 +09:00
bpf bpftool: Fix JSON writer resource leak in version command 2025-08-20 18:41:18 +02:00
build tools build: Don't show libbfd build status as it is opt-in 2025-04-10 10:45:30 -03:00
certs
cgroup memcg_slabinfo: Fix use of PG_slab 2025-08-15 16:38:50 +02:00
counter
crypto
debugging
firewire
firmware
gpio tools: gpio: remove the include directory on make clean 2025-09-09 19:02:39 +02:00
hv tools/hv: fcopy: Fix irregularities with size of ring buffer 2025-07-15 06:25:33 +00:00
iio iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
include tools/nolibc: fix spelling of FD_SETBITMASK in FD_* macros 2025-08-20 18:41:42 +02:00
kvm/kvm_stat
laptop
leds
lib libbpf: Fix warning in calloc() usage 2025-08-20 18:41:07 +02:00
memory-model tools/memory-model/Documentation: Fix SRCU section in explanation.txt 2025-04-23 12:17:04 -07:00
mm
net tools: ynl-gen: fix nested array counting 2025-09-09 19:02:26 +02:00
objtool objtool/LoongArch: Mark special atomic instruction as INSN_BUG type 2025-09-25 11:16:47 +02:00
pcmcia
perf perf maps: Ensure kmap is set up for all inserts 2025-09-25 11:16:41 +02:00
power cpupower: Fix a bug where the -t option of the set subcommand was not working. 2025-09-09 19:02:16 +02:00
rcu
sched_ext sched_ext: change the variable name for slice refill event 2025-04-18 17:25:39 -10:00
scripts tools/build: Fix s390(x) cross-compilation with clang 2025-08-20 18:40:59 +02:00
sound
spi
testing selftests: mptcp: sockopt: fix error messages 2025-09-25 11:16:43 +02:00
thermal
time
tracing rtla: Check pkg-config install 2025-09-04 16:55:28 +02:00
usb
verification verification/dot2k: Make a separate dot2k_templates/Kconfig_container 2025-08-20 18:41:05 +02:00
virtio
wmi
workqueue
writeback
Makefile tools/Makefile: Add ynl target 2025-04-28 17:18:48 -07:00