diff options
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils-0.158/mips_readelf_w.patch')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils-0.158/mips_readelf_w.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils-0.158/mips_readelf_w.patch b/meta/recipes-devtools/elfutils/elfutils-0.158/mips_readelf_w.patch new file mode 100644 index 0000000000..8e669e7199 --- /dev/null +++ b/meta/recipes-devtools/elfutils/elfutils-0.158/mips_readelf_w.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | From: Kurt Roeckx <kurt@roeckx.be> | ||
2 | Subject: Make readelf -w output debug information on mips | ||
3 | Bug-Debian: http://bugs.debian.org/662041 | ||
4 | Forwarded: not-needed | ||
5 | |||
6 | Upstreams wants a change where this is handled by a hook that needs | ||
7 | to be filled in by the backend for the arch. | ||
8 | |||
9 | Index: elfutils-0.153/src/readelf.c | ||
10 | =================================================================== | ||
11 | --- elfutils-0.153.orig/src/readelf.c 2012-08-10 22:01:55.000000000 +0200 | ||
12 | +++ elfutils-0.153/src/readelf.c 2012-09-18 21:46:27.000000000 +0200 | ||
13 | @@ -7364,7 +7364,8 @@ | ||
14 | GElf_Shdr shdr_mem; | ||
15 | GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); | ||
16 | |||
17 | - if (shdr != NULL && shdr->sh_type == SHT_PROGBITS) | ||
18 | + if (shdr != NULL && ( | ||
19 | + (shdr->sh_type == SHT_PROGBITS) || (shdr->sh_type == SHT_MIPS_DWARF))) | ||
20 | { | ||
21 | static const struct | ||
22 | { | ||