db26348c91
Patches status: valgrind-0001-workaround-SIGSEGV-on-PPC: Don't know. In doubt, I prefer to keep it. valgrind-0002-don-t-enable-largefile-support-unconditionally-on-uC: Seems still necessary valgrind-0003-Add-replacement-for-a.out.h: Upstreamed valgrind-0004-remove-default-mips-flags: Upstreamed valgrind-0005-glibc-2.19: Upstream now support glibc up to 2.20 Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
72 lines
2.5 KiB
Diff
72 lines
2.5 KiB
Diff
From 6bb94d51e25b394bc9c52699f744a7cc06ffca15 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Pouiller?= <jezz@sysmic.org>
|
|
Date: Thu, 2 Jan 2014 16:00:06 +0100
|
|
Subject: [PATCH 2/2] don't enable largefile support unconditionally on uClibc
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
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>
|
|
Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
|
|
---
|
|
coregrind/m_initimg/initimg-linux.c | 4 ++++
|
|
coregrind/m_main.c | 4 ++++
|
|
coregrind/m_ume/elf.c | 4 ++++
|
|
3 files changed, 12 insertions(+)
|
|
|
|
diff --git a/coregrind/m_initimg/initimg-linux.c b/coregrind/m_initimg/initimg-linux.c
|
|
index a8e7d27..fa670cb 100644
|
|
--- a/coregrind/m_initimg/initimg-linux.c
|
|
+++ b/coregrind/m_initimg/initimg-linux.c
|
|
@@ -55,7 +55,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 --- !!! --- */
|
|
diff --git a/coregrind/m_main.c b/coregrind/m_main.c
|
|
index e7159a8..4371a1f 100644
|
|
--- a/coregrind/m_main.c
|
|
+++ b/coregrind/m_main.c
|
|
@@ -3143,7 +3143,11 @@ asm(
|
|
|
|
/* --- !!! --- 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 --- !!! --- */
|
|
diff --git a/coregrind/m_ume/elf.c b/coregrind/m_ume/elf.c
|
|
index 4615da3..06992a4 100644
|
|
--- a/coregrind/m_ume/elf.c
|
|
+++ b/coregrind/m_ume/elf.c
|
|
@@ -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 --- !!! --- */
|
|
--
|
|
1.9.1
|
|
|