mirror of
https://abf.rosa.ru/djam/glibc40.git
synced 2025-02-23 15:52:52 +00:00
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
![]() |
Description: unset CALL_MCOUNT for __libc_do_syscall
|
||
|
unset CALL_MCOUNT before __libc_do_syscall, because it only supports Thumb-2
|
||
|
and ARM mode, not Thumb-1; and because profiling this internal routine
|
||
|
is of dubious value.
|
||
|
Origin: https://bugs.launchpad.net/linaro-toolchain-misc/+bug/605030/+attachment/1484534/+files/libc-do-syscall.S
|
||
|
Author: Peter Pearse <peter.pearse@linaro.org>
|
||
|
Bug-Linaro: https://bugs.launchpad.net/linaro-toolchain-misc/+bug/605030
|
||
|
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/605030
|
||
|
Reviewed-by: Steve Langasek <steve.langasek@linaro.org>
|
||
|
|
||
|
Index: glibc-2.12.1/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S
|
||
|
===================================================================
|
||
|
--- glibc-2.12.1.orig/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S
|
||
|
+++ glibc-2.12.1/ports/sysdeps/unix/sysv/linux/arm/eabi/libc-do-syscall.S
|
||
|
@@ -29,6 +29,12 @@
|
||
|
.syntax unified
|
||
|
.hidden __libc_do_syscall
|
||
|
|
||
|
+/*
|
||
|
+ * PMP Work round for https://bugs.launchpad.net/gcc-linaro/+bug/605030
|
||
|
+ */
|
||
|
+#undef CALL_MCOUNT
|
||
|
+#define CALL_MCOUNT
|
||
|
+
|
||
|
ENTRY (__libc_do_syscall)
|
||
|
.fnstart
|
||
|
push {r7, lr}
|