Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | { |