|
From: <sv...@va...> - 2010-08-12 07:48:36
|
Author: sewardj
Date: 2010-08-12 08:48:27 +0100 (Thu, 12 Aug 2010)
New Revision: 11256
Log:
Ubuntu 10.04/ARM fixes:
- support sys_pselect6
- make a couple of redirs mandatory
- add a ld.so supp
Modified:
branches/THUMB/Makefile.all.am
branches/THUMB/coregrind/m_redir.c
branches/THUMB/coregrind/m_syswrap/syswrap-arm-linux.c
branches/THUMB/glibc-2.X.supp.in
branches/THUMB/include/vki/vki-scnums-arm-linux.h
Modified: branches/THUMB/Makefile.all.am
===================================================================
--- branches/THUMB/Makefile.all.am 2010-08-10 08:05:40 UTC (rev 11255)
+++ branches/THUMB/Makefile.all.am 2010-08-12 07:48:27 UTC (rev 11256)
@@ -91,7 +91,7 @@
@FLAG_W_NO_FORMAT_ZERO_LENGTH@ \
-fno-strict-aliasing \
\
- -O0
+ -O
# These flags are used for building the preload shared objects.
# The aim is to give reasonable performance but also to have good
Modified: branches/THUMB/coregrind/m_redir.c
===================================================================
--- branches/THUMB/coregrind/m_redir.c 2010-08-10 08:05:40 UTC (rev 11255)
+++ branches/THUMB/coregrind/m_redir.c 2010-08-12 07:48:27 UTC (rev 11256)
@@ -1009,7 +1009,7 @@
add_hardwired_spec(
"ld-linux.so.3", "strlen",
(Addr)&VG_(arm_linux_REDIR_FOR_strlen),
- NULL
+ complain_about_stripped_glibc_ldso
);
//add_hardwired_spec(
// "ld-linux.so.3", "index",
@@ -1019,7 +1019,7 @@
add_hardwired_spec(
"ld-linux.so.3", "memcpy",
(Addr)&VG_(arm_linux_REDIR_FOR_memcpy),
- NULL
+ complain_about_stripped_glibc_ldso
);
}
/* nothing so far */
Modified: branches/THUMB/coregrind/m_syswrap/syswrap-arm-linux.c
===================================================================
--- branches/THUMB/coregrind/m_syswrap/syswrap-arm-linux.c 2010-08-10 08:05:40 UTC (rev 11255)
+++ branches/THUMB/coregrind/m_syswrap/syswrap-arm-linux.c 2010-08-12 07:48:27 UTC (rev 11256)
@@ -1657,6 +1657,8 @@
// correspond to what's in include/vki/vki-scnums-arm-linux.h.
// From here onwards, please ensure the numbers are correct.
+ LINX_(__NR_pselect6, sys_pselect6), // 335
+
LINXY(__NR_signalfd4, sys_signalfd4), // 355
LINX_(__NR_eventfd2, sys_eventfd2), // 356
Modified: branches/THUMB/glibc-2.X.supp.in
===================================================================
--- branches/THUMB/glibc-2.X.supp.in 2010-08-10 08:05:40 UTC (rev 11255)
+++ branches/THUMB/glibc-2.X.supp.in 2010-08-12 07:48:27 UTC (rev 11256)
@@ -228,3 +228,11 @@
obj:/lib/libpthread-0.10.so
fun:pthread_create
}
+
+##----------------------------------------------------------------------##
+# Ubuntu 10.04 on ARM (Thumb). Not sure why this is necessary.
+{
+ U1004-ARM-_dl_relocate_object
+ Memcheck:Cond
+ fun:_dl_relocate_object
+}
Modified: branches/THUMB/include/vki/vki-scnums-arm-linux.h
===================================================================
--- branches/THUMB/include/vki/vki-scnums-arm-linux.h 2010-08-10 08:05:40 UTC (rev 11255)
+++ branches/THUMB/include/vki/vki-scnums-arm-linux.h 2010-08-12 07:48:27 UTC (rev 11256)
@@ -370,7 +370,7 @@
#define __NR_readlinkat 332
#define __NR_fchmodat 333
#define __NR_faccessat 334
- /* 335 for pselect6 */
+#define __NR_pselect6 335 /* JRS 20100812: is this correct? */
/* 336 for ppoll */
#define __NR_unshare 337
#define __NR_set_robust_list 338
|