Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From 33da4b4347aacdfb8b1b42e06e29e68a4b882d96 Mon Sep 17 00:00:00 2001 |
Brad Bishop | a5c52ff | 2018-11-23 10:55:50 +1300 | [diff] [blame] | 2 | From: Kurt Roeckx <kurt@roeckx.be> |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 3 | Date: Mon, 4 Mar 2019 09:45:00 +0000 |
| 4 | Subject: [PATCH] Make readelf -w output debug information on mips |
Brad Bishop | a5c52ff | 2018-11-23 10:55:50 +1300 | [diff] [blame] | 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 | Upstream-Status: Pending [from debian] |
| 10 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 11 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 12 | --- |
| 13 | src/readelf.c | 3 ++- |
| 14 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/src/readelf.c b/src/readelf.c |
| 17 | index 33706bd..ef13159 100644 |
| 18 | --- a/src/readelf.c |
| 19 | +++ b/src/readelf.c |
| 20 | @@ -11148,7 +11148,8 @@ print_debug (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr) |
Brad Bishop | a5c52ff | 2018-11-23 10:55:50 +1300 | [diff] [blame] | 21 | GElf_Shdr shdr_mem; |
| 22 | GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem); |
| 23 | |
| 24 | - if (shdr != NULL && shdr->sh_type == SHT_PROGBITS) |
| 25 | + if (shdr != NULL && ( |
| 26 | + (shdr->sh_type == SHT_PROGBITS) || (shdr->sh_type == SHT_MIPS_DWARF))) |
| 27 | { |
| 28 | static const struct |
| 29 | { |