[Bug libc/32125] powerpc: Missing TOC stub in __syscall_cancel_arch for powerpc64le-linux-gnu
dilfridge at gentoo dot org
sourceware-bugzilla@sourceware.org
Fri Dec 20 23:32:47 GMT 2024
https://sourceware.org/bugzilla/show_bug.cgi?id=32125
Andreas K. Huettel <dilfridge at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2.41
CC| |dilfridge at gentoo dot org
--- Comment #3 from Andreas K. Huettel <dilfridge at gentoo dot org> ---
commit 29f0db6a2e00fb17f5fe1eb1eee853436247ffe2
Author: Jeevitha Palanisamy <jeevitha@linux.ibm.com>
AuthorDate: Fri Aug 30 08:15:16 2024 -0500
Commit: Peter Bergner <bergner@linux.ibm.com>
CommitDate: Fri Aug 30 08:50:47 2024 -0500
powerpc64: Fix syscall_cancel build for powerpc64le-linux-gnu [BZ #32125]
In __syscall_cancel_arch, there's a tail call to __syscall_do_cancel.
On P10, since the caller uses the TOC and the callee is using
PC-relative addressing, there's only a branch instruction with no NOPs
to restore the TOC, which causes the build error. The fix involves adding
the NOTOC directive to the branch instruction, informing the linker
not to generate a TOC stub, thus resolving the issue.
sysdeps/powerpc/powerpc64/sysdep.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Fixed in 2.41
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list