From: Kurt Roeckx Date: Tue, 28 May 2019 18:53:12 +0000 (+0100) Subject: Make readelf -w output debug information on mips X-Git-Tag: archive/raspbian/0.188-2.1+rpi1^2^2^2^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=36ecf3220fdb43cd88246d705f6078172e6712b1;p=elfutils.git Make readelf -w output debug information on mips Bug-Debian: http://bugs.debian.org/662041 Forwarded: not-needed Upstreams wants a change where this is handled by a hook that needs to be filled in by the backend for the arch. Gbp-Pq: Name mips_readelf_w.patch --- diff --git a/src/readelf.c b/src/readelf.c index 33706bd..ef13159 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -11148,7 +11148,8 @@ print_debug (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr) GElf_Shdr shdr_mem; GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); - if (shdr != NULL && shdr->sh_type == SHT_PROGBITS) + if (shdr != NULL && ( + (shdr->sh_type == SHT_PROGBITS) || (shdr->sh_type == SHT_MIPS_DWARF))) { static const struct {