[PATCH] arch/powerpc: Remove .interp section in vmlinux
Vishal Chourasia
vishalc at linux.ibm.com
Mon Oct 13 15:01:48 AEDT 2025
While debugging a ppc64le QEMU guest on an x86_64 host, I observed GDB crashes
when attempting to attach to the remote target:
(gdb) target remote :1234
Investigation revealed that cross-compiling the Linux kernel for ppc64le on an
x86_64 host using Clang produces a vmlinux binary containing an empty .interp
section. This empty .interp section is responsible for the GDB crashes.
This issue does not occur when:
- Building for ppc64le target using GCC on x86_64 host
- Building for ppc64le target using Clang on ppc64le host
- Building for ppc64le target using GCC on ppc64le host
For details refer [1]
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=33481
vishalc
More information about the Linuxppc-dev
mailing list