diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-12-20 00:14:54 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-01-01 22:24:12 +0100 |
commit | b4c0647e14fe329a8ac3d1d5de064e22b3624eda (patch) | |
tree | 8fcda66e55b0c1b9d0b6a741777ee7a25ee7dcd2 /package/valgrind/valgrind-3.7.0-dont-include-a-out-header.patch | |
parent | d70a9f6d645130fd1354ed040a132ac8ed71f46b (diff) | |
download | buildroot-b4c0647e14fe329a8ac3d1d5de064e22b3624eda.tar.gz buildroot-b4c0647e14fe329a8ac3d1d5de064e22b3624eda.zip |
valgrind: rename patches without version in the filename
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/valgrind/valgrind-3.7.0-dont-include-a-out-header.patch')
-rw-r--r-- | package/valgrind/valgrind-3.7.0-dont-include-a-out-header.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/package/valgrind/valgrind-3.7.0-dont-include-a-out-header.patch b/package/valgrind/valgrind-3.7.0-dont-include-a-out-header.patch deleted file mode 100644 index ed1c939ed6..0000000000 --- a/package/valgrind/valgrind-3.7.0-dont-include-a-out-header.patch +++ /dev/null @@ -1,45 +0,0 @@ -Add replacement for <a.out.h> - -Valgrind includes <a.out.h> to get the definition of 'struct -nlist'. However, while glibc directly defines 'struct nlist' in -<a.out.h>, uClibc relies on it being defined by kernel headers (i.e -<a.out.h> simply includes <linux/a.out.h>). This works for most -architectures, but not for PowerPC, on which the a.out binary format -has never been supported, and therefore the <linux/a.out.h> kernel -header does not exist. - -One solution would have been to use the <nlist.h> header, but this one -is only available in glibc, and it also has a slightly different -definition than the one in <a.out.h>. So, for the time being, the -easiest solution is to just replace the #include <a.out.h> in Valgrind -code by a copy/paste of the 'struct nlist' definition. - -Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - -Index: b/coregrind/m_debuginfo/readstabs.c -=================================================================== ---- a/coregrind/m_debuginfo/readstabs.c -+++ b/coregrind/m_debuginfo/readstabs.c -@@ -52,7 +52,21 @@ - - /* --- !!! --- EXTERNAL HEADERS start --- !!! --- */ - #if defined(VGO_linux) --# include <a.out.h> /* stabs defns */ -+/* Copied from a.out.h, because it is otherwise not available on -+ PowerPC/uClibc */ -+struct nlist -+{ -+ union -+ { -+ char *n_name; -+ struct nlist *n_next; -+ long n_strx; -+ } n_un; -+ unsigned char n_type; -+ char n_other; -+ short n_desc; -+ unsigned long n_value; -+}; - #elif defined(VGO_darwin) - # include <mach-o/nlist.h> - # define n_other n_sect |