Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -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.164/src/readelf.c |
| 10 | =================================================================== |
| 11 | --- elfutils-0.164.orig/src/readelf.c |
| 12 | +++ elfutils-0.164/src/readelf.c |
| 13 | @@ -8218,7 +8218,8 @@ print_debug (Dwfl_Module *dwflmod, Ebl * |
| 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 | { |