2011-07-11 22:17:16 +02:00
|
|
|
[PATCH] valgrind: don't enable largefile support unconditionally on uClibc
|
|
|
|
|
|
|
|
uClibc can be compiled without largefile support (and errors out if
|
|
|
|
_FILE_OFFSET_BITS is set to 64), so don't define it if that combination
|
|
|
|
is detected.
|
|
|
|
|
|
|
|
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
|
|
|
|
valgrind: bump to 3.8.1
Status of the patches:
* valgrind-compiler-check.patch, no longer needed, merged upstream.
* valgrind-dont-include-a-out-header.patch, kept, just refreshed
* valgrind-fix-ccache-support.patch, adapted to the newer Valgrind
release.
* valgrind-largefile.patch, kept, just refreshed
* valgrind-more-ioctls.patch, removed. Most of it was merged
upstream. This patch was anyway a feature addition, so it shouldn't
be kept in Buildroot.
* valgrind-workaround-SIGSEGV-on-PPC.patch, kept as is, just
refreshed.
This bump also fixes the build failure we were experiencing with
Valgrind 3.7.0 against recent Glibc versions.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-12-19 14:14:55 +01:00
|
|
|
Index: b/coregrind/m_initimg/initimg-linux.c
|
2011-07-11 22:17:16 +02:00
|
|
|
===================================================================
|
valgrind: bump to 3.8.1
Status of the patches:
* valgrind-compiler-check.patch, no longer needed, merged upstream.
* valgrind-dont-include-a-out-header.patch, kept, just refreshed
* valgrind-fix-ccache-support.patch, adapted to the newer Valgrind
release.
* valgrind-largefile.patch, kept, just refreshed
* valgrind-more-ioctls.patch, removed. Most of it was merged
upstream. This patch was anyway a feature addition, so it shouldn't
be kept in Buildroot.
* valgrind-workaround-SIGSEGV-on-PPC.patch, kept as is, just
refreshed.
This bump also fixes the build failure we were experiencing with
Valgrind 3.7.0 against recent Glibc versions.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-12-19 14:14:55 +01:00
|
|
|
--- a/coregrind/m_initimg/initimg-linux.c
|
|
|
|
+++ b/coregrind/m_initimg/initimg-linux.c
|
2011-12-31 15:07:08 +01:00
|
|
|
@@ -55,7 +55,11 @@
|
2011-07-11 22:17:16 +02:00
|
|
|
|
|
|
|
/* --- !!! --- EXTERNAL HEADERS start --- !!! --- */
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
+#include <features.h>
|
|
|
|
+/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
|
|
|
|
+#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
+#endif
|
|
|
|
/* This is for ELF types etc, and also the AT_ constants. */
|
|
|
|
#include <elf.h>
|
|
|
|
/* --- !!! --- EXTERNAL HEADERS end --- !!! --- */
|
valgrind: bump to 3.8.1
Status of the patches:
* valgrind-compiler-check.patch, no longer needed, merged upstream.
* valgrind-dont-include-a-out-header.patch, kept, just refreshed
* valgrind-fix-ccache-support.patch, adapted to the newer Valgrind
release.
* valgrind-largefile.patch, kept, just refreshed
* valgrind-more-ioctls.patch, removed. Most of it was merged
upstream. This patch was anyway a feature addition, so it shouldn't
be kept in Buildroot.
* valgrind-workaround-SIGSEGV-on-PPC.patch, kept as is, just
refreshed.
This bump also fixes the build failure we were experiencing with
Valgrind 3.7.0 against recent Glibc versions.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-12-19 14:14:55 +01:00
|
|
|
Index: b/coregrind/m_main.c
|
2011-07-11 22:17:16 +02:00
|
|
|
===================================================================
|
valgrind: bump to 3.8.1
Status of the patches:
* valgrind-compiler-check.patch, no longer needed, merged upstream.
* valgrind-dont-include-a-out-header.patch, kept, just refreshed
* valgrind-fix-ccache-support.patch, adapted to the newer Valgrind
release.
* valgrind-largefile.patch, kept, just refreshed
* valgrind-more-ioctls.patch, removed. Most of it was merged
upstream. This patch was anyway a feature addition, so it shouldn't
be kept in Buildroot.
* valgrind-workaround-SIGSEGV-on-PPC.patch, kept as is, just
refreshed.
This bump also fixes the build failure we were experiencing with
Valgrind 3.7.0 against recent Glibc versions.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-12-19 14:14:55 +01:00
|
|
|
--- a/coregrind/m_main.c
|
|
|
|
+++ b/coregrind/m_main.c
|
|
|
|
@@ -2948,7 +2948,11 @@
|
2011-07-11 22:17:16 +02:00
|
|
|
|
|
|
|
/* --- !!! --- EXTERNAL HEADERS start --- !!! --- */
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
+#include <features.h>
|
|
|
|
+/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
|
|
|
|
+#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
+#endif
|
|
|
|
/* This is in order to get AT_NULL and AT_PAGESIZE. */
|
|
|
|
#include <elf.h>
|
|
|
|
/* --- !!! --- EXTERNAL HEADERS end --- !!! --- */
|
valgrind: bump to 3.8.1
Status of the patches:
* valgrind-compiler-check.patch, no longer needed, merged upstream.
* valgrind-dont-include-a-out-header.patch, kept, just refreshed
* valgrind-fix-ccache-support.patch, adapted to the newer Valgrind
release.
* valgrind-largefile.patch, kept, just refreshed
* valgrind-more-ioctls.patch, removed. Most of it was merged
upstream. This patch was anyway a feature addition, so it shouldn't
be kept in Buildroot.
* valgrind-workaround-SIGSEGV-on-PPC.patch, kept as is, just
refreshed.
This bump also fixes the build failure we were experiencing with
Valgrind 3.7.0 against recent Glibc versions.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-12-19 14:14:55 +01:00
|
|
|
Index: b/coregrind/m_ume/elf.c
|
2011-07-11 22:17:16 +02:00
|
|
|
===================================================================
|
valgrind: bump to 3.8.1
Status of the patches:
* valgrind-compiler-check.patch, no longer needed, merged upstream.
* valgrind-dont-include-a-out-header.patch, kept, just refreshed
* valgrind-fix-ccache-support.patch, adapted to the newer Valgrind
release.
* valgrind-largefile.patch, kept, just refreshed
* valgrind-more-ioctls.patch, removed. Most of it was merged
upstream. This patch was anyway a feature addition, so it shouldn't
be kept in Buildroot.
* valgrind-workaround-SIGSEGV-on-PPC.patch, kept as is, just
refreshed.
This bump also fixes the build failure we were experiencing with
Valgrind 3.7.0 against recent Glibc versions.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-12-19 14:14:55 +01:00
|
|
|
--- a/coregrind/m_ume/elf.c
|
|
|
|
+++ b/coregrind/m_ume/elf.c
|
2011-07-11 22:17:16 +02:00
|
|
|
@@ -48,7 +48,11 @@
|
|
|
|
|
|
|
|
/* --- !!! --- EXTERNAL HEADERS start --- !!! --- */
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
+#include <features.h>
|
|
|
|
+/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
|
|
|
|
+#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
+#endif
|
|
|
|
/* This is for ELF types etc, and also the AT_ constants. */
|
|
|
|
#include <elf.h>
|
|
|
|
/* --- !!! --- EXTERNAL HEADERS end --- !!! --- */
|